]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct actor for OStatusPlugin::onEndUnsubscribe()
authorEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 18:32:24 +0000 (13:32 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 18:32:24 +0000 (13:32 -0500)
plugins/OStatus/OStatusPlugin.php

index b5cfb5caec4684aa6a20ba2355fae981b9037c09..b966661db6f360ffbc011afaf34e81d06a73ded4 100644 (file)
@@ -294,7 +294,7 @@ class OStatusPlugin extends Plugin
                                $profile->getBestName(),
                                $other->getBestName());
 
-        $act->actor   = ActivityObject::fromProfile($subscriber);
+        $act->actor   = ActivityObject::fromProfile($profile);
         $act->object  = ActivityObject::fromProfile($other);
 
         $oprofile->notifyActivity($act);
@@ -447,8 +447,9 @@ class OStatusPlugin extends Plugin
     /**
      * Notify remote users when their notices get de-favorited.
      *
-     * @param Profile or User $profile of local user doing the de-faving
-     * @param Notice $notice being favored
+     * @param Profile $profile Profile person doing the de-faving
+     * @param Notice  $notice  Notice being favored
+     *
      * @return hook return value
      */