mirror of https://gitlab.com/bashrc2/epicyon
Less strict reserved words for nickname validation
parent
a7d5f5a5ff
commit
73ab5f80d6
4
utils.py
4
utils.py
|
|
@ -2618,7 +2618,9 @@ def get_nickname_validation_pattern() -> str:
|
||||||
def _is_reserved_name(nickname: str) -> bool:
|
def _is_reserved_name(nickname: str) -> bool:
|
||||||
"""Is the given nickname reserved for some special function?
|
"""Is the given nickname reserved for some special function?
|
||||||
"""
|
"""
|
||||||
reserved_names = _get_reserved_words()
|
reserved_names = ('users', 'accounts', 'profile', 'statuses',
|
||||||
|
'search', 'channel',
|
||||||
|
'http', 'https', 'ipfs', 'ipns')
|
||||||
if nickname in reserved_names:
|
if nickname in reserved_names:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue