From d6f479606564fcfb3b02a635d680ecc065ccd412 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 30 May 2024 09:34:33 +0100 Subject: [PATCH] Extra statuses path --- utils.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/utils.py b/utils.py index 7a44a76b1..496d666ec 100644 --- a/utils.py +++ b/utils.py @@ -2857,10 +2857,13 @@ def _is_valid_language(text: str) -> bool: def _get_reserved_words() -> str: + """Returns a list of reserved words which should not be + used for nicknames in order to avoid confusion + """ return ('inbox', 'dm', 'outbox', 'following', 'public', 'followers', 'category', 'channel', 'calendar', 'video-channels', - 'tlreplies', 'tlmedia', 'tlblogs', + 'videos', 'tlreplies', 'tlmedia', 'tlblogs', 'tlblogs', 'tlfeatures', 'moderation', 'moderationaction', 'activity', 'undo', 'pinned', @@ -2879,8 +2882,8 @@ def _get_reserved_words() -> str: 'mention', 'http', 'https', 'ipfs', 'ipns', 'ontologies', 'data', 'postedit', 'moved', 'inactive', 'activitypub', 'actors', - 'notes', 'offers', 'wanted', 'honk', - 'button') + 'note', 'notes', 'offers', 'wanted', 'honk', + 'button', 'post', 'item', 'comment') def get_nickname_validation_pattern() -> str: