server: fix thread mutes not applying to renotes
Changelog: Fixed
This commit is contained in:
parent
8520be65c7
commit
f74f475dc4
|
@ -116,7 +116,12 @@ class NotificationManager {
|
||||||
|
|
||||||
const threadMuted = await NoteThreadMutings.findOneBy({
|
const threadMuted = await NoteThreadMutings.findOneBy({
|
||||||
userId: x.target,
|
userId: x.target,
|
||||||
threadId: this.note.threadId || this.note.id,
|
threadId: In([
|
||||||
|
// replies
|
||||||
|
this.note.threadId ?? this.note.id,
|
||||||
|
// renotes
|
||||||
|
this.note.renoteId ?? undefined
|
||||||
|
]),
|
||||||
mutingNotificationTypes: ArrayOverlap([x.reason]),
|
mutingNotificationTypes: ArrayOverlap([x.reason]),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue