feat: #3783, min/max tags per category

This commit is contained in:
Barış Soner Uşaklı
2020-06-24 16:02:57 -04:00
parent ed4b5caf2c
commit c718b7293e
11 changed files with 130 additions and 12 deletions

View File

@@ -160,6 +160,8 @@ Topics.getTopicWithPosts = async function (topicData, set, uid, start, stop, rev
topicData.posts = posts;
topicData.category = category;
topicData.tagWhitelist = tagWhitelist[0];
topicData.minTags = category.minTags;
topicData.maxTags = category.maxTags;
topicData.thread_tools = threadTools.tools;
topicData.isFollowing = followData[0].following;
topicData.isNotFollowing = !followData[0].following && !followData[0].ignoring;