Skip to content

Node.js based forum software built for the modern web

set unreplied flag to new topics sent via websocket

psychobunnyd4d0e8cd9b59
diff --git a/src/topics.js b/src/topics.js
index cbf2278c9d..cedb429e69 100644
--- a/src/topics.js
+++ b/src/topics.js
@@ -102,6 +102,8 @@ var RDB = require('./redis.js'),
threadTools.toggleFollow(tid, uid);
Topics.getTopicForCategoryView(tid, uid, function(topicData) {
+ topicData.unreplied = 1;
+
callback(null, {
topicData: topicData,
postData: postData