mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +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"',
|
'content-type': 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
|
||||||
},
|
},
|
||||||
body: payload,
|
body: payload,
|
||||||
|
timeout: 10000, // configurable?
|
||||||
});
|
});
|
||||||
|
|
||||||
if (String(response.statusCode).startsWith('2')) {
|
if (String(response.statusCode).startsWith('2')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user