mirror of
https://github.com/friendica/friendica
synced 2025-04-26 13:50:11 +00:00
More rework to make private communities working
This commit is contained in:
parent
6c0dbc1775
commit
9ac24a0f36
8 changed files with 79 additions and 67 deletions
|
@ -667,6 +667,15 @@ class Receiver
|
|||
$uid = $receiver['uid'];
|
||||
}
|
||||
}
|
||||
|
||||
// When we haven't found any user yet, we just chose a user who most likely could have access to the content
|
||||
if (empty($uid)) {
|
||||
$contact = Contact::selectFirst(['uid'], ['nurl' => Strings::normaliseLink($actor), 'rel' => [Contact::SHARING, Contact::FRIEND]]);
|
||||
if (!empty($contact['uid'])) {
|
||||
$uid = $contact['uid'];
|
||||
}
|
||||
}
|
||||
|
||||
return $uid;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue