forked from GNUsocial/gnu-social
Add group and groups to list of forbidden user names
This commit is contained in:
parent
26bc168c93
commit
64f5c542df
@ -118,7 +118,7 @@ class User extends Memcached_DataObject
|
||||
static $blacklist = array('rss', 'xrds', 'doc', 'main',
|
||||
'settings', 'notice', 'user',
|
||||
'search', 'avatar', 'tag', 'tags',
|
||||
'api', 'message');
|
||||
'api', 'message', 'group', 'groups');
|
||||
$merged = array_merge($blacklist, common_config('nickname', 'blacklist'));
|
||||
return !in_array($nickname, $merged);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user