From 0b4b9a2ef48ae4265543d13548dec8d612f513d3 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 9 Apr 2018 05:27:38 +0900 Subject: [PATCH] :v: --- src/remote/activitypub/resolver.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts index 7d45783b4..f405ff10c 100644 --- a/src/remote/activitypub/resolver.ts +++ b/src/remote/activitypub/resolver.ts @@ -48,11 +48,6 @@ export default class Resolver { this.history.add(value); - //#region resolve local objects - // TODO - //if (value.startsWith(`${config.url}/`)) { - //#endregion - const object = await request({ url: value, headers: { @@ -66,12 +61,10 @@ export default class Resolver { !object['@context'].includes('https://www.w3.org/ns/activitystreams') : object['@context'] !== 'https://www.w3.org/ns/activitystreams' )) { - log(`invalid response: ${JSON.stringify(object, null, 2)}`); + log(`invalid response: ${value}`); throw new Error('invalid response'); } - log(`resolved: ${JSON.stringify(object, null, 2)}`); - return object; } }