forked from GNUsocial/gnu-social
Minor code cleanup with group related actions (thanks brw12)
Originated from brw12 who noticed an incorrect variable name used in an error message in actions/apigroupjoin.php:109
This commit is contained in:
@@ -218,7 +218,7 @@ class OStatusInitAction extends Action
|
||||
}
|
||||
} else if ($this->group) {
|
||||
$group = Local_group::getKV('nickname', $this->group);
|
||||
if ($group) {
|
||||
if ($group instanceof Local_group) {
|
||||
return common_local_url('groupbyid', array('id' => $group->group_id));
|
||||
} else {
|
||||
// TRANS: Client error.
|
||||
|
Reference in New Issue
Block a user