forked from GNUsocial/gnu-social
make sure UserFlagPlugin works without Profile_flag
This commit is contained in:
parent
7a8723e6b4
commit
285745d2fd
@ -101,8 +101,7 @@ class UserFlagPlugin extends Plugin
|
|||||||
|
|
||||||
$action->elementStart('li', 'entity_flag');
|
$action->elementStart('li', 'entity_flag');
|
||||||
|
|
||||||
if (User_flag_profile::exists($profile->id, $user->id,
|
if (User_flag_profile::exists($profile->id, $user->id)) {
|
||||||
Profile_flag::DEFAULTFLAG)) {
|
|
||||||
$action->element('span',
|
$action->element('span',
|
||||||
_('Flagged for review'));
|
_('Flagged for review'));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user