fix problem with using wrong arg to EndLeaveGroup event

This commit is contained in:
Evan Prodromou 2011-09-18 19:28:17 -04:00
parent ffe5702dc3
commit 0ee660af23
1 changed files with 2 additions and 2 deletions

View File

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