mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-29 05:17:39 -07:00
fix: wrong type for isVisibleForMe
This commit is contained in:
parent
4d7fa4010b
commit
d6046c75aa
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ export default async function(resolver: Resolver, actor: CacheableRemoteUser, ac
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!await Notes.isVisibleForMe(renote, actor)) return 'skip: invalid actor for this activity';
|
if (!await Notes.isVisibleForMe(renote, actor.id)) return 'skip: invalid actor for this activity';
|
||||||
|
|
||||||
logger.info(`Creating the (Re)Note: ${uri}`);
|
logger.info(`Creating the (Re)Note: ${uri}`);
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default async (user: { id: User['id']; host: User['host']; }, note: Note,
|
||||||
}
|
}
|
||||||
|
|
||||||
// check visibility
|
// 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.');
|
throw new IdentifiableError('68e9d2d1-48bf-42c2-b90a-b20e09fd3d48', 'Note not accessible for you.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue