mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
fix: typo
This commit is contained in:
@@ -196,7 +196,7 @@ Notes.assertTopic = async (uid, id) => {
|
|||||||
const systemTags = (meta.config.systemTags || '').split(',');
|
const systemTags = (meta.config.systemTags || '').split(',');
|
||||||
const maxTags = cid > 0 ? await categories.getCategoryField(cid, 'maxTags') : null;
|
const maxTags = cid > 0 ? await categories.getCategoryField(cid, 'maxTags') : null;
|
||||||
tags = (mainPost._activitypub.tag || [])
|
tags = (mainPost._activitypub.tag || [])
|
||||||
.filter(o => o.type === 'Hashtag' && !systemTags.include(o.name.slice(1)))
|
.filter(o => o.type === 'Hashtag' && !systemTags.includes(o.name.slice(1)))
|
||||||
.map(o => o.name.slice(1));
|
.map(o => o.name.slice(1));
|
||||||
|
|
||||||
if (maxTags) {
|
if (maxTags) {
|
||||||
|
|||||||
Reference in New Issue
Block a user