From: Evan Prodromou Date: Sun, 18 Sep 2011 23:28:17 +0000 (-0400) Subject: fix problem with using wrong arg to EndLeaveGroup event X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0ee660af23f27e21c22f9a0b2122a2192a1aa953;p=quix0rs-gnu-social.git fix problem with using wrong arg to EndLeaveGroup event --- diff --git a/plugins/OStatus/OStatusPlugin.php b/plugins/OStatus/OStatusPlugin.php index dfdec36899..43b90cfbf7 100644 --- a/plugins/OStatus/OStatusPlugin.php +++ b/plugins/OStatus/OStatusPlugin.php @@ -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',