fix: feed visibility

This commit is contained in:
Namekuji 2023-09-20 09:33:11 -04:00
parent 0b23a5adaa
commit e4db18807e
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -46,7 +46,10 @@ export default async function (
) )
.then((result) => result.rows.map(parseScyllaNote)); .then((result) => result.rows.map(parseScyllaNote));
notes = notes.filter( notes = notes.filter(
(note) => !(!renotes && note.renoteId) && !(!replies && note.replyId), (note) =>
["public", "home"].includes(note.visibility) &&
!(!renotes && note.renoteId) &&
!(!replies && note.replyId),
); );
} else { } else {
notes = await Notes.find({ notes = await Notes.find({