fix: Duplicate mentions results in duplicate notifications (#5585)
This commit is contained in:
@@ -40,6 +40,10 @@ export default class CommentCreatedNotificationsTask extends BaseTask<CommentEve
|
||||
const userIdsMentioned: string[] = [];
|
||||
|
||||
for (const mention of mentions) {
|
||||
if (userIdsMentioned.includes(mention.modelId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const recipient = await User.findByPk(mention.modelId);
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user