forked from mirrors/misskey
fix: wrong type for isVisibleForMe
This commit is contained in:
@@ -28,7 +28,7 @@ export default async (user: { id: User['id']; host: User['host']; }, note: Note,
|
||||
}
|
||||
|
||||
// check visibility
|
||||
if (!await Notes.isVisibleForMe(note, user)) {
|
||||
if (!await Notes.isVisibleForMe(note, user.id)) {
|
||||
throw new IdentifiableError('68e9d2d1-48bf-42c2-b90a-b20e09fd3d48', 'Note not accessible for you.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user