Node.js based forum software built for the modern web
fix: tags received via AP should only be of type Hashtag (as mentions are also in tag prop
Julian Lam81b81e540af4
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.jsindex 55bb4e906a..e39e64171a 100644--- a/src/activitypub/notes.js+++ b/src/activitypub/notes.js@@ -259,7 +259,9 @@ Notes.assertTopic = async (uid, id) => {let tags;if (!hasTid) {- tags = (mainPost._activitypub.tag || []).map(o => o.name.slice(1));+ tags = (mainPost._activitypub.tag || [])+ .filter(o => o.type === 'Hashtag')+ .map(o => o.name.slice(1));tags = await topics.filterTags(tags, cid);await topics.create({