From b132717efc76d6af22e6fcedfa0a09ed001e7906 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 25 May 2024 18:59:52 +0100 Subject: [PATCH] Additional users and statuses paths --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 3e70d3043..e388aede3 100644 --- a/utils.py +++ b/utils.py @@ -1654,7 +1654,7 @@ def dangerous_svg(content: str, allow_local_network_access: bool) -> bool: def _get_statuses_list() -> []: """Returns a list of statuses path strings """ - return ('/statuses/', '/objects/', '/honk/', '/p/', '/h/') + return ('/statuses/', '/objects/', '/honk/', '/p/', '/h/', '/api/posts/') def contains_statuses(url: str) -> bool: @@ -1878,7 +1878,7 @@ def get_user_paths() -> []: return ('/users/', '/profile/', '/accounts/', '/channel/', '/u/', '/c/', '/m/', '/a/', '/video-channels/', '/author/', '/activitypub/', '/actors/', '/snac/', '/@/', '/~/', - '/fediverse/blog/', '/user/', '/@') + '/fediverse/blog/', '/user/', '/@', '/api/collections/') def get_group_paths() -> []: