fix: check userId
This commit is contained in:
parent
8a738fdc15
commit
74f0231ec1
1 changed files with 3 additions and 0 deletions
|
@ -86,6 +86,9 @@ export default define(meta, paramDef, async (ps, user) => {
|
||||||
|
|
||||||
const filter = async (notes: ScyllaNote[]) => {
|
const filter = async (notes: ScyllaNote[]) => {
|
||||||
let filtered = notes.filter((n) => n.renoteId === note.id);
|
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);
|
filtered = await filterVisibility(filtered, user, followingUserIds);
|
||||||
if (user) {
|
if (user) {
|
||||||
filtered = await filterMutedUser(
|
filtered = await filterMutedUser(
|
||||||
|
|
Loading…
Reference in a new issue