1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-14 14:35:38 +02:00

fix(backend): チャンネルミュートを有効にしている際にノートの閲覧ができなくなることがある問題を修正 (#17251)

* fix(backend): チャンネルミュート使用時にユーザーのノート一覧読み込みに失敗する問題を修正

* more fix

* Update Changelog
This commit is contained in:
かっこかり
2026-03-20 19:11:56 +09:00
committed by GitHub
parent 0e4732180f
commit 54e94263a8
4 changed files with 14 additions and 3 deletions

View File

@@ -185,7 +185,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
if (ps.withChannelNotes) {
query.andWhere(new Brackets(qb => {
if (mutingChannelIds.length > 0) {
qb.andWhere('note.channelId NOT IN (:...mutingChannelIds)', { mutingChannelIds: mutingChannelIds });
qb.andWhere(new Brackets(qb2 => {
qb2.orWhere('note.channelId IS NULL');
qb2.orWhere('note.channelId NOT IN (:...mutingChannelIds)', { mutingChannelIds });
}));
}
if (!isSelf) {