Node.js based forum software built for the modern web
dont send notifications for guests
barisusakli75824c0d810c
diff --git a/src/topics/create.js b/src/topics/create.jsindex 3072dba2ae..273f5f16f0 100644--- a/src/topics/create.js+++ b/src/topics/create.js@@ -201,9 +201,11 @@ module.exports = function(Topics) {function(data, next) {postData = data;- Topics.notifyFollowers(tid, postData.pid, uid);+ if (parseInt(uid, 10)) {+ Topics.notifyFollowers(tid, postData.pid, uid);- user.notifications.sendPostNotificationToFollowers(uid, tid, postData.pid);+ user.notifications.sendPostNotificationToFollowers(uid, tid, postData.pid);+ }next();},