diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-12-12 00:41:26 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-12-12 00:41:26 +0900 |
| commit | 43f3f8a05883f5bbaca6fce1b45ada7228b15e4c (patch) | |
| tree | cbb2e2ac013f2d92721009805cfd4708a3668daa | |
| parent | Fix #5424 (#5604) (diff) | |
| download | sharkey-43f3f8a05883f5bbaca6fce1b45ada7228b15e4c.tar.gz sharkey-43f3f8a05883f5bbaca6fce1b45ada7228b15e4c.tar.bz2 sharkey-43f3f8a05883f5bbaca6fce1b45ada7228b15e4c.zip | |
Resolve syuilo#5548 (#5607)
| -rw-r--r-- | src/remote/activitypub/resolver.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts index 5b82244536..8688b79a40 100644 --- a/src/remote/activitypub/resolver.ts +++ b/src/remote/activitypub/resolver.ts @@ -51,6 +51,13 @@ export default class Resolver { Accept: 'application/activity+json, application/ld+json' }, json: true + }).catch(e => { + const message = `${e.name}: ${e.message ? e.message.substr(0, 200) : undefined}, url=${value}`; + throw { + name: e.name, + statusCode: e.statusCode, + message, + }; }); if (object == null || ( |