fix: feed visibility
This commit is contained in:
parent
0b23a5adaa
commit
e4db18807e
1 changed files with 4 additions and 1 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue