mirror of
https://github.com/friendica/friendica
synced 2025-05-03 11:44:09 +02:00
AP Bugfix: Following a soapbox now works / rapid follow/unfollow should work now
This commit is contained in:
parent
253ac95ca0
commit
fa7cddc669
2 changed files with 7 additions and 1 deletions
|
@ -1917,6 +1917,12 @@ class Contact extends BaseObject
|
|||
} elseif (DBA::isResult($user) && in_array($user['page-flags'], [self::PAGE_SOAPBOX, self::PAGE_FREELOVE, self::PAGE_COMMUNITY])) {
|
||||
$condition = ['uid' => $importer['uid'], 'url' => $url, 'pending' => true];
|
||||
DBA::update('contact', ['pending' => false], $condition);
|
||||
|
||||
$contact = DBA::selectFirst('contact', ['url', 'network', 'hub-verify'], ['id' => $contact_record['id']]);
|
||||
|
||||
if ($contact['network'] == Protocol::ACTIVITYPUB) {
|
||||
ActivityPub\Transmitter::sendContactAccept($contact['url'], $contact['hub-verify'], $importer['uid']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue