summaryrefslogtreecommitdiff
path: root/src/remote/activitypub/resolver.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/remote/activitypub/resolver.ts')
-rw-r--r--src/remote/activitypub/resolver.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/remote/activitypub/resolver.ts b/src/remote/activitypub/resolver.ts
index 215e5e8704..ff26971758 100644
--- a/src/remote/activitypub/resolver.ts
+++ b/src/remote/activitypub/resolver.ts
@@ -7,6 +7,7 @@ const log = debug('misskey:activitypub:resolver');
export default class Resolver {
private history: Set<string>;
+ private timeout = 10 * 1000;
constructor() {
this.history = new Set();
@@ -50,6 +51,7 @@ export default class Resolver {
const object = await request({
url: value,
+ timeout: this.timeout,
headers: {
'User-Agent': config.user_agent,
Accept: 'application/activity+json, application/ld+json'