mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 00:56:13 +01:00
fix: missing return
This commit is contained in:
@@ -515,7 +515,7 @@ ActivityPub.probe = async ({ uid, url }) => {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await checkHeader(meta.config.activitypubProbeTimeout || 2000);
|
return await checkHeader(meta.config.activitypubProbeTimeout || 2000);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (e.name === 'TimeoutError') {
|
if (e.name === 'TimeoutError') {
|
||||||
// Return early but retry for caching purposes
|
// Return early but retry for caching purposes
|
||||||
|
|||||||
Reference in New Issue
Block a user