mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
fix: tests
This commit is contained in:
@@ -97,7 +97,9 @@ module.exports = function (Posts) {
|
||||
topics.checkContent(data.content);
|
||||
if (type === 'topic') {
|
||||
topics.checkTitle(data.title);
|
||||
await topics.validateTags(data.tags);
|
||||
if (data.tags) {
|
||||
await topics.validateTags(data.tags);
|
||||
}
|
||||
}
|
||||
|
||||
const [canPost] = await Promise.all([
|
||||
|
||||
Reference in New Issue
Block a user