mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-17 18:41:46 +02:00
feat: allow defining a list of system tags
This commit is contained in:
@@ -131,7 +131,7 @@ module.exports = function (Posts) {
|
||||
throw new Error('[[error:no-privileges]]');
|
||||
}
|
||||
}
|
||||
await topics.validateTags(data.tags, topicData.cid);
|
||||
await topics.validateTags(data.tags, topicData.cid, data.uid);
|
||||
|
||||
const results = await plugins.hooks.fire('filter:topic.edit', {
|
||||
req: data.req,
|
||||
|
||||
@@ -216,7 +216,7 @@ module.exports = function (Posts) {
|
||||
if (type === 'topic') {
|
||||
topics.checkTitle(data.title);
|
||||
if (data.tags) {
|
||||
await topics.validateTags(data.tags);
|
||||
await topics.validateTags(data.tags, cid, data.uid);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user