diff --git a/src/topics/create.js b/src/topics/create.js index 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(); },