]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Ostatus_profile->checkAuthorship returns Profile
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 24 Nov 2014 22:40:06 +0000 (23:40 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 24 Nov 2014 22:40:06 +0000 (23:40 +0100)
not Ostatus_profile

plugins/OStatus/OStatusPlugin.php

index e4f9ccc7a184c802cee3ba2f77fe3111316aa520..169951db88f7866cec7b44fa8edc2c59bbf1c1a2 100644 (file)
@@ -1343,8 +1343,7 @@ class OStatusPlugin extends Plugin
     {
         try {
             $oprofile = Ostatus_profile::getFromProfile($profile);
-            $oprofile = $oprofile->checkAuthorship($activity);
-            $profile = $oprofile->localProfile();
+            $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);
             $profile = null;