Simplify fetching object in resolver.ts
this.user will always be true, so we aren't doing unsigned fetches.
This commit is contained in:
parent
77bfc2450d
commit
8e5a350f1b
1 changed files with 1 additions and 3 deletions
|
@ -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']) ?
|
||||
|
|
Loading…
Reference in a new issue