Skip to content
Snippets Groups Projects
Unverified Commit 6b109c7b authored by Johann150's avatar Johann150
Browse files

fix: wrong type for isVisibleForMe

parent 0a050eac
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,7 @@ export default async function(resolver: Resolver, actor: CacheableRemoteUser, ac
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}`);
......
......@@ -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.');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment