diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-09 05:27:38 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-09 05:27:38 +0900 |
| commit | 1186b788d65b027bf00cd78c10140a1afb131145 (patch) | |
| tree | 6b9917dd216a0e8fd0e1bc58c6d68a8b180e367c /src/remote/activitypub/resolver.ts | |
| parent | :v: (diff) | |
| download | misskey-1186b788d65b027bf00cd78c10140a1afb131145.tar.gz misskey-1186b788d65b027bf00cd78c10140a1afb131145.tar.bz2 misskey-1186b788d65b027bf00cd78c10140a1afb131145.zip | |
:v:
Diffstat (limited to 'src/remote/activitypub/resolver.ts')
| -rw-r--r-- | src/remote/activitypub/resolver.ts | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts index 7d45783b47..f405ff10c3 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; } } |