From e4db18807e5b60ca0b7b3115f591eb2ebd92bb36 Mon Sep 17 00:00:00 2001 From: Namekuji Date: Wed, 20 Sep 2023 09:33:11 -0400 Subject: [PATCH] fix: feed visibility --- packages/backend/src/server/web/feed.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/web/feed.ts b/packages/backend/src/server/web/feed.ts index aecdf028f6..7ed5b1f757 100644 --- a/packages/backend/src/server/web/feed.ts +++ b/packages/backend/src/server/web/feed.ts @@ -46,7 +46,10 @@ export default async function ( ) .then((result) => result.rows.map(parseScyllaNote)); notes = notes.filter( - (note) => !(!renotes && note.renoteId) && !(!replies && note.replyId), + (note) => + ["public", "home"].includes(note.visibility) && + !(!renotes && note.renoteId) && + !(!replies && note.replyId), ); } else { notes = await Notes.find({