fix: wrong variable

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

View file

@ -87,7 +87,7 @@ 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 = filtered.filter((n) => n.userId === ps.userId);
}
filtered = await filterVisibility(filtered, user, followingUserIds);
if (user) {