From 0ee660af23f27e21c22f9a0b2122a2192a1aa953 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 18 Sep 2011 19:28:17 -0400 Subject: [PATCH] fix problem with using wrong arg to EndLeaveGroup event --- plugins/OStatus/OStatusPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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', -- 2.39.5