mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
Merge branch 'master' into develop
This commit is contained in:
@@ -30,11 +30,12 @@ Notes._normalizeTags = async (tag, cid) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tags = tags
|
tags = tags
|
||||||
|
.filter(({ type }) => type === 'Hashtag')
|
||||||
.map((tag) => {
|
.map((tag) => {
|
||||||
tag.name = tag.name.startsWith('#') ? tag.name.slice(1) : tag.name;
|
tag.name = tag.name.startsWith('#') ? tag.name.slice(1) : tag.name;
|
||||||
return tag;
|
return tag;
|
||||||
})
|
})
|
||||||
.filter(o => o.type === 'Hashtag' && !systemTags.includes(o.name))
|
.filter(({ name }) => !systemTags.includes(name))
|
||||||
.map(t => t.name);
|
.map(t => t.name);
|
||||||
|
|
||||||
if (tags.length > maxTags) {
|
if (tags.length > maxTags) {
|
||||||
|
|||||||
Reference in New Issue
Block a user