OStatus: fix for remote group join via non-logged-in 'join' button.

Bad lookup was sending us to the first group instead of the selected group.
This commit is contained in:
Brion Vibber 2010-03-04 09:24:47 -08:00
parent 45f11d9637
commit 8f1762cb95

View File

@ -186,7 +186,7 @@ class OStatusInitAction extends Action
$this->clientError("No such user.");
}
} else if ($this->group) {
$group = Local_group::staticGet('id', $this->group);
$group = Local_group::staticGet('nickname', $this->group);
if ($group) {
return common_local_url('groupbyid', array('id' => $group->group_id));
} else {