fix: Replies to comments in threads only trigger notifications to document subscribers, closes #4984

This commit is contained in:
Tom Moor
2023-03-05 16:19:56 -05:00
parent 646afec491
commit ac3284986c
2 changed files with 16 additions and 11 deletions

View File

@@ -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;