Don't show unlisted posts in antennas

This commit is contained in:
Freeplay 2023-05-26 20:05:26 -04:00
parent 7609ac4d88
commit c9e5b596c1
1 changed files with 2 additions and 1 deletions

View File

@ -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);