[ActivityPub] Remove TFN's deprecated Census event

This commit is contained in:
tenma 2020-04-07 02:42:03 +01:00 committed by Diogo Peralta Cordeiro
parent bbd9044626
commit 12945c4d20
1 changed files with 1 additions and 13 deletions

View File

@ -220,18 +220,6 @@ class ActivityPubPlugin extends Plugin
return true;
}
/**
* Subscribe AP's profile class to the TFN module
*
* @param array $federation
* @return bool event hook return
*/
public function onStartTFNCensus(array &$federation): bool
{
$federation[] = 'Activitypub_profile';
return true;
}
/**
* Set up queue handlers for required interactions
*
@ -387,7 +375,7 @@ class ActivityPubPlugin extends Plugin
if ($profile->isLocal()) {
return true;
}
$aprofile = Activitypub_profile::getKV('profile_id', $profile->getID());
if (!$aprofile instanceof Activitypub_profile) {
// Not a remote ActivityPub_profile! Maybe some other network