fix: Replies to comments in threads only trigger notifications to document subscribers, closes #4984
This commit is contained in:
@@ -81,7 +81,8 @@ export default class NotificationsProcessor extends BaseProcessor {
|
||||
const recipients = await NotificationHelper.getDocumentNotificationRecipients(
|
||||
document,
|
||||
"documents.publish",
|
||||
document.lastModifiedById
|
||||
document.lastModifiedById,
|
||||
false
|
||||
);
|
||||
|
||||
for (const recipient of recipients) {
|
||||
@@ -128,7 +129,8 @@ export default class NotificationsProcessor extends BaseProcessor {
|
||||
const recipients = await NotificationHelper.getDocumentNotificationRecipients(
|
||||
document,
|
||||
"documents.update",
|
||||
document.lastModifiedById
|
||||
document.lastModifiedById,
|
||||
true
|
||||
);
|
||||
if (!recipients.length) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user