Extra statuses path

main
Bob Mottram 2023-09-05 16:55:20 +01:00
parent 51825d38c9
commit b352a37eff
1 changed files with 2 additions and 2 deletions

View File

@ -1327,7 +1327,7 @@ def dangerous_svg(content: str, allow_local_network_access: bool) -> bool:
def _get_statuses_list() -> []: def _get_statuses_list() -> []:
"""Returns a list of statuses path strings """Returns a list of statuses path strings
""" """
return ('/statuses/', '/objects/', '/p/', '/h/') return ('/statuses/', '/objects/', '/honk/', '/p/', '/h/')
def contains_statuses(url: str) -> bool: def contains_statuses(url: str) -> bool:
@ -2505,7 +2505,7 @@ def _get_reserved_words() -> str:
'mention', 'http', 'https', 'ipfs', 'ipns', 'mention', 'http', 'https', 'ipfs', 'ipns',
'ontologies', 'data', 'postedit', 'moved', 'ontologies', 'data', 'postedit', 'moved',
'inactive', 'activitypub', 'actors', 'inactive', 'activitypub', 'actors',
'notes', 'offers', 'wanted') 'notes', 'offers', 'wanted', 'honk')
def get_nickname_validation_pattern() -> str: def get_nickname_validation_pattern() -> str: