mirror of https://gitlab.com/bashrc2/epicyon
Don't allow accounts as a username
parent
58bba56e75
commit
1c62500763
3
utils.py
3
utils.py
|
@ -584,12 +584,13 @@ def validNickname(domain: str, nickname: str) -> bool:
|
||||||
if nickname == domain:
|
if nickname == domain:
|
||||||
return False
|
return False
|
||||||
reservedNames = ('inbox', 'dm', 'outbox', 'following',
|
reservedNames = ('inbox', 'dm', 'outbox', 'following',
|
||||||
'public', 'followers', 'profile',
|
'public', 'followers',
|
||||||
'channel', 'capabilities', 'calendar',
|
'channel', 'capabilities', 'calendar',
|
||||||
'tlreplies', 'tlmedia', 'tlblogs',
|
'tlreplies', 'tlmedia', 'tlblogs',
|
||||||
'moderation', 'activity', 'undo',
|
'moderation', 'activity', 'undo',
|
||||||
'reply', 'replies', 'question', 'like',
|
'reply', 'replies', 'question', 'like',
|
||||||
'likes', 'users', 'statuses',
|
'likes', 'users', 'statuses',
|
||||||
|
'accounts', 'channels', 'profile',
|
||||||
'updates', 'repeat', 'announce',
|
'updates', 'repeat', 'announce',
|
||||||
'shares', 'fonts', 'icons')
|
'shares', 'fonts', 'icons')
|
||||||
if nickname in reservedNames:
|
if nickname in reservedNames:
|
||||||
|
|
Loading…
Reference in New Issue