From c9e5b596c135aac00c677cf34fad7603e3eb415e Mon Sep 17 00:00:00 2001 From: Freeplay Date: Fri, 26 May 2023 20:05:26 -0400 Subject: [PATCH] Don't show unlisted posts in antennas --- packages/backend/src/server/api/endpoints/antennas/notes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/antennas/notes.ts b/packages/backend/src/server/api/endpoints/antennas/notes.ts index d011c5fb80..29e2e085ad 100644 --- a/packages/backend/src/server/api/endpoints/antennas/notes.ts +++ b/packages/backend/src/server/api/endpoints/antennas/notes.ts @@ -81,7 +81,8 @@ export default define(meta, paramDef, async (ps, user) => { .leftJoinAndSelect("renote.user", "renoteUser") .leftJoinAndSelect("renoteUser.avatar", "renoteUserAvatar") .leftJoinAndSelect("renoteUser.banner", "renoteUserBanner") - .andWhere("antennaNote.antennaId = :antennaId", { antennaId: antenna.id }); + .andWhere("antennaNote.antennaId = :antennaId", { antennaId: antenna.id }) + .andWhere("note.visibility != 'home'"); generateVisibilityQuery(query, user); generateMutedUserQuery(query, user);