server: fix thread mutes not applying to renotes
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
Changelog: Fixed
This commit is contained in:
parent
af43df15ca
commit
6c7f1774e3
1 changed files with 6 additions and 1 deletions
|
@ -98,7 +98,12 @@ class NotificationManager {
|
|||
|
||||
const threadMuted = await NoteThreadMutings.findOneBy({
|
||||
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]),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue