Extra user and status paths

main
Bob Mottram 2024-07-26 10:45:41 +01:00
parent 94c9e63a52
commit f6ccc25c96
1 changed files with 2 additions and 2 deletions

View File

@ -1700,7 +1700,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/')
'/content/', '/federation/')
def contains_statuses(url: str) -> bool:
@ -1929,7 +1929,7 @@ def get_user_paths() -> []:
"""
return ('/users/', '/profile/', '/accounts/', '/channel/',
'/u/', '/c/', '/m/', '/a/', '/video-channels/',
'/nieuws/author/', '/author/',
'/nieuws/author/', '/author/', '/federation/user/',
'/activitypub/', '/actors/', '/snac/', '/@/', '/~/',
'/fediverse/blog/', '/user/', '/@', '/api/collections/',
'/feed/', '/actor/')