mirror of
https://github.com/outline/outline.git
synced 2026-11-25 23:24:06 +03:00
fix: Document mentions can be incorrectly attributed during collab session (#7913)
This commit is contained in:
1 parent
55ffd6d098
commit
9747c6ba5d
2 files changed
+2
-2
No files matched your search
@@ -40,7 +40,7 @@ export default class DocumentPublishedNotificationsTask extends BaseTask<Documen
|
||||
await Notification.create({
|
||||
event: NotificationEventType.MentionedInDocument,
|
||||
userId: recipient.id,
|
||||
actorId: document.updatedBy.id,
|
||||
actorId: mention.actorId,
|
||||
teamId: document.teamId,
|
||||
documentId: document.id,
|
||||
});
|
||||
|
||||
@@ -60,7 +60,7 @@ export default class RevisionCreatedNotificationsTask extends BaseTask<RevisionE
|
||||
event: NotificationEventType.MentionedInDocument,
|
||||
userId: recipient.id,
|
||||
revisionId: event.modelId,
|
||||
actorId: document.updatedBy.id,
|
||||
actorId: mention.actorId,
|
||||
teamId: document.teamId,
|
||||
documentId: document.id,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user