mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
AP: Transmitting and receiving with non AP contacts
This commit is contained in:
parent
97c181a391
commit
fea48fa85e
5 changed files with 68 additions and 46 deletions
|
@ -419,8 +419,9 @@ class Receiver
|
|||
}
|
||||
|
||||
if (in_array($receiver, [$followers, self::PUBLIC_COLLECTION]) && !empty($actor)) {
|
||||
$networks = [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS];
|
||||
$condition = ['nurl' => normalise_link($actor), 'rel' => [Contact::SHARING, Contact::FRIEND],
|
||||
'network' => Protocol::ACTIVITYPUB, 'archive' => false, 'pending' => false];
|
||||
'network' => $networks, 'archive' => false, 'pending' => false];
|
||||
$contacts = DBA::select('contact', ['uid'], $condition);
|
||||
while ($contact = DBA::fetch($contacts)) {
|
||||
if ($contact['uid'] != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue