From 4d68e3fe145e49f38d1f3dc2b45d8409bb3945f6 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 22 Sep 2025 11:56:55 -0400 Subject: [PATCH] fix: re-jig handling of ap tag values so that only hashtags are considered (not Piefed community tags, etc.) --- src/activitypub/notes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index ef4abe9add..832b8d152d 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -38,11 +38,12 @@ Notes._normalizeTags = async (tag, cid) => { } tags = tags + .filter(({ type }) => type === 'Hashtag') .map((tag) => { tag.name = tag.name.startsWith('#') ? tag.name.slice(1) : tag.name; return tag; }) - .filter(o => o.type === 'Hashtag' && !systemTags.includes(o.name)) + .filter(({ name }) => !systemTags.includes(name)) .map(t => t.name); if (tags.length > maxTags) {