Make dummy function great again!

This commit is contained in:
Diogo Cordeiro 2018-08-06 18:51:36 +01:00
parent 76bea7b17e
commit 334923e542

View File

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