mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix: tags received via AP should only be of type Hashtag (as mentions are also in tag prop
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user