]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Try to lookup the profile if we don't know it yet
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 24 Nov 2014 22:50:42 +0000 (23:50 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 24 Nov 2014 22:50:42 +0000 (23:50 +0100)
plugins/OStatus/OStatusPlugin.php

index 169951db88f7866cec7b44fa8edc2c59bbf1c1a2..07523cdd0b0582166ab24660437aac0e8c45c224 100644 (file)
@@ -1342,7 +1342,7 @@ class OStatusPlugin extends Plugin
     static public function onCheckActivityAuthorship(Activity $activity, Profile &$profile)
     {
         try {
-            $oprofile = Ostatus_profile::getFromProfile($profile);
+            $oprofile = Ostatus_profile::ensureProfileURI($profile->getUri());
             $profile = $oprofile->checkAuthorship($activity);
         } catch (Exception $e) {
             common_log(LOG_ERR, 'Could not get a profile or check authorship ('.get_class($e).': "'.$e->getMessage().'") for activity ID: '.$activity->id);