Fixed 267U.pre2

This commit is contained in:
2026-07-26 18:25:37 +09:00
parent 50bfaeafdf
commit 317d00a284
1286 changed files with 80222 additions and 1 deletions
@@ -0,0 +1,15 @@
import { Brackets } from "typeorm";
import { RenoteMutings } from "../../../models/index.js";
export function generateMutedUserRenotesQueryForNotes(q, me) {
const mutingQuery = RenoteMutings.createQueryBuilder("renote_muting").select("renote_muting.muteeId").where("renote_muting.muterId = :muterId", {
muterId: me.id
});
q.andWhere(new Brackets((qb)=>{
qb.where(new Brackets((qb)=>{
qb.where("note.renoteId IS NOT NULL");
qb.andWhere("note.text IS NULL");
qb.andWhere(`note.userId NOT IN (${mutingQuery.getQuery()})`);
})).orWhere("note.renoteId IS NULL").orWhere("note.text IS NOT NULL");
}));
q.setParameters(mutingQuery.getParameters());
}