feat: allow defining a list of system tags

This commit is contained in:
Barış Soner Uşaklı
2021-02-17 14:44:04 -05:00
parent bbaaead09c
commit 0e07f3c9ba
10 changed files with 70 additions and 7 deletions

View File

@@ -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,