Simplify fetching object in resolver.ts

this.user will always be true, so we aren't doing unsigned fetches.
This commit is contained in:
Norm 2022-08-21 13:13:34 -04:00
parent 77bfc2450d
commit 8e5a350f1b

View file

@ -76,9 +76,7 @@ export default class Resolver {
this.user = await getInstanceActor();
}
const object = (this.user
? await signedGet(value, this.user)
: await getJson(value, 'application/activity+json, application/ld+json')) as IObject;
const object = await signedGet(value, this.user);
if (object == null || (
Array.isArray(object['@context']) ?