Extra statuses path

main
Bob Mottram 2024-08-10 13:17:08 +01:00
parent f486eecaa7
commit d26e172ee6
1 changed files with 3 additions and 2 deletions

View File

@ -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: