From aa71bd166bf445e19f5be51c732c22c044d3d796 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Wed, 20 Jul 2022 19:58:08 +0200 Subject: [PATCH] Fix tag parsing in inbox processing --- app/boxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/boxes.py b/app/boxes.py index dbbe9af..a2370fb 100644 --- a/app/boxes.py +++ b/app/boxes.py @@ -852,7 +852,7 @@ async def _process_note_object( is_local_reply = ro.in_reply_to and ro.in_reply_to.startswith(BASE_URL) is_mention = False tags = ro.ap_object.get("tag", []) - for tag in tags: + for tag in ap.as_list(tags): if tag.get("name") == LOCAL_ACTOR.handle or tag.get("href") == LOCAL_ACTOR.url: is_mention = True