mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: notifications for tag followers not being sent if author is a remote user
This commit is contained in:
@@ -153,8 +153,11 @@ module.exports = function (Topics) {
|
||||
analytics.increment(['topics', `topics:byCid:${topicData.cid}`]);
|
||||
plugins.hooks.fire('action:topic.post', { topic: topicData, post: postData, data: data });
|
||||
|
||||
if (parseInt(uid, 10) && !topicData.scheduled) {
|
||||
if (!topicData.scheduled) {
|
||||
if (utils.isNumber(uid)) {
|
||||
// New topic notifications only sent for local-to-local follows only
|
||||
user.notifications.sendTopicNotificationToFollowers(uid, topicData, postData);
|
||||
}
|
||||
Topics.notifyTagFollowers(postData, uid);
|
||||
categories.notifyCategoryFollowers(postData, uid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user