More reserved words

main
bashrc 2026-07-20 14:49:28 +01:00
parent a685422f0b
commit c7505840d9
1 changed files with 2 additions and 2 deletions

View File

@ -2522,7 +2522,7 @@ def _get_reserved_words() -> str:
'note', 'notes', 'offers', 'wanted', 'honk', 'note', 'notes', 'offers', 'wanted', 'honk',
'button', 'post', 'item', 'comment', 'button', 'post', 'item', 'comment',
'content', 'federation', 'elsewhere', 'content', 'federation', 'elsewhere',
'article', 'activity') 'article', 'activity', 'featured', 'collections')
def get_nickname_validation_pattern() -> str: def get_nickname_validation_pattern() -> str:
@ -2545,7 +2545,7 @@ def _is_reserved_name(nickname: str) -> bool:
'users', 'accounts', 'profile', 'statuses', 'packs', 'backend', 'users', 'accounts', 'profile', 'statuses', 'packs', 'backend',
'search', 'channel', 'config', 'settings', 'credentials', 'apis', 'search', 'channel', 'config', 'settings', 'credentials', 'apis',
'http', 'https', 'ipfs', 'ipns', 'laravel', 'root', 'webmail', 'http', 'https', 'ipfs', 'ipns', 'laravel', 'root', 'webmail',
'mail', 'statistics' 'mail', 'statistics', 'featured', 'collections'
) )
if nickname in reserved_names: if nickname in reserved_names:
return True return True