mirror of
https://github.com/friendica/friendica
synced 2025-04-29 11:44:24 +02:00
Issue 6282: Update the forum status of contacts
This commit is contained in:
parent
c4038e7af1
commit
297a549590
3 changed files with 39 additions and 6 deletions
|
@ -11,6 +11,7 @@ use Friendica\Core\Logger;
|
|||
use Friendica\Core\PConfig;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Model\APContact;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\Item;
|
||||
use Friendica\Protocol\ActivityPub;
|
||||
|
@ -60,7 +61,12 @@ class OnePoll
|
|||
$contact = DBA::selectFirst('contact', [], ['id' => $contact_id]);
|
||||
}
|
||||
|
||||
// We currently don't do anything with AP here
|
||||
// These three networks can be able to speak AP, so we are trying to fetch AP profile data here
|
||||
if (in_array($contact['network'], [Protocol::ACTIVITYPUB, Protocol::DIASPORA, Protocol::DFRN])) {
|
||||
APContact::getByURL($contact['url']);
|
||||
}
|
||||
|
||||
// We currently don't do anything more with AP here
|
||||
if ($contact['network'] === Protocol::ACTIVITYPUB) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue