Make dummy function great again!

This commit is contained in:
Diogo Cordeiro 2018-08-06 18:51:36 +01:00
parent 76bea7b17e
commit 334923e542
1 changed files with 2 additions and 3 deletions

View File

@ -214,8 +214,7 @@ class ActivityPubPlugin extends Plugin
}
/**
* Dummy string on AccountProfileBlock stating that ActivityPub is active
* this is more of a placeholder for eventual useful stuff ._.
* Adds an indicator on Remote ActivityPub profiles.
*
* @author Diogo Cordeiro <diogo@fc.up.pt>
* @return boolean hook return value
@ -226,7 +225,7 @@ class ActivityPubPlugin extends Plugin
return true;
}
try {
$aprofile = Activitypub_profile::getKV('profile_id', $profile->id);
$aprofile = Activitypub_profile::from_profile($profile);
} catch (Exception $e) {
// Not a remote ActivityPub_profile! Maybe some other network
// that has imported a non-local user (e.g.: OStatus)?