mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: re-jig handling of ap tag values so that only hashtags are considered (not Piefed community tags, etc.)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user