Fix tag parsing in inbox processing

main
Thomas Sileo 2022-07-20 19:58:08 +02:00
parent 5016b8eb79
commit aa71bd166b
1 changed files with 1 additions and 1 deletions

View File

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