From d26e172ee6c25fd61ec423c533ecbf039aa61386 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 10 Aug 2024 13:17:08 +0100 Subject: [PATCH] Extra statuses path --- utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 8f21e64d3..a45d64409 100644 --- a/utils.py +++ b/utils.py @@ -1703,7 +1703,7 @@ def _get_statuses_list() -> []: return ('/statuses/', '/objects/', '/honk/', '/p/', '/h/', '/api/posts/', '/note/', '/notes/', '/comment/', '/post/', '/item/', '/videos/', '/button/', '/x/', '/o/', '/posts/', '/items/', '/object/', '/r/', - '/content/', '/federation/', '/elsewhere/') + '/content/', '/federation/', '/elsewhere/', '/article/') def contains_statuses(url: str) -> bool: @@ -2969,7 +2969,8 @@ def _get_reserved_words() -> str: 'inactive', 'activitypub', 'actors', 'note', 'notes', 'offers', 'wanted', 'honk', 'button', 'post', 'item', 'comment', - 'content', 'federation', 'elsewhere') + 'content', 'federation', 'elsewhere', + 'article') def get_nickname_validation_pattern() -> str: