fix: check userId

This commit is contained in:
Namekuji 2023-08-09 21:21:36 -04:00
parent 8a738fdc15
commit 74f0231ec1
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -86,6 +86,9 @@ export default define(meta, paramDef, async (ps, user) => {
const filter = async (notes: ScyllaNote[]) => {
let filtered = notes.filter((n) => n.renoteId === note.id);
if (ps.userId) {
filtered = notes.filter((n) => n.userId === ps.userId);
}
filtered = await filterVisibility(filtered, user, followingUserIds);
if (user) {
filtered = await filterMutedUser(