chore (backend): add comment

This commit is contained in:
naskya 2024-04-22 05:47:22 +09:00
parent 509690d84d
commit 8140694a31
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -67,6 +67,9 @@ export default define(meta, paramDef, async (ps, user) => {
.andWhere("note.renoteId = :renoteId", { renoteId: note.id })
.innerJoinAndSelect("note.user", "user");
// "all" doesn't filter out anything, it's just there for
// those who prefer to set the parameter explicitly
if (ps.filter === "renote") {
query.andWhere("note.text IS NULL");
}