]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix problem with using wrong arg to EndLeaveGroup event
authorEvan Prodromou <evan@status.net>
Sun, 18 Sep 2011 23:28:17 +0000 (19:28 -0400)
committerEvan Prodromou <evan@status.net>
Sun, 18 Sep 2011 23:28:17 +0000 (19:28 -0400)
plugins/OStatus/OStatusPlugin.php

index dfdec368992c89eec79f720be65275d5f222ad98..43b90cfbf7db7ef706b14cf7d469ecb7b3842459 100644 (file)
@@ -811,14 +811,14 @@ class OStatusPlugin extends Plugin
      *
      * @return mixed hook return value
      */
-    function onEndLeaveGroup($group, $user)
+    function onEndLeaveGroup($group, $profile)
     {
         $oprofile = Ostatus_profile::staticGet('group_id', $group->id);
         if ($oprofile) {
             // Drop the PuSH subscription if there are no other subscribers.
             $oprofile->garbageCollect();
 
-            $member = Profile::staticGet($user->id);
+            $member = $profile;
 
             $act = new Activity();
             $act->id = TagURI::mint('leave:%d:%d:%s',