mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 20:41:17 +01:00
dont send notifications for guests
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user