forked from GNUsocial/gnu-social
Found a remnant staticGet call
This commit is contained in:
parent
6478034e92
commit
3c2a720b21
@ -979,12 +979,14 @@ class Notice extends Managed_DataObject
|
|||||||
|
|
||||||
// Force the scope for private groups
|
// Force the scope for private groups
|
||||||
foreach ($groups as $group_id) {
|
foreach ($groups as $group_id) {
|
||||||
$group = User_group::staticGet('id', $group_id);
|
try {
|
||||||
if ($group instanceof User_group) {
|
$group = User_group::getByID($group_id);
|
||||||
if ($group->force_scope) {
|
if ($group->force_scope) {
|
||||||
$scope |= Notice::GROUP_SCOPE;
|
$scope |= Notice::GROUP_SCOPE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
common_log(LOG_ERR, 'Notice figureOutScope threw exception: '.$e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user