mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: add 10s timeout for AP message send
This commit is contained in:
@@ -330,6 +330,7 @@ async function sendMessage(uri, id, type, payload, attempts = 1) {
|
||||
'content-type': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
||||
},
|
||||
body: payload,
|
||||
timeout: 10000, // configurable?
|
||||
});
|
||||
|
||||
if (String(response.statusCode).startsWith('2')) {
|
||||
|
||||
Reference in New Issue
Block a user