Node.js based forum software built for the modern web
refactor: use helpers.log
Barış Soner Uşaklı40257663a85d
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex f57a39e322..81ade2c8b4 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -339,7 +339,7 @@ async function sendMessage(uri, id, type, payload, attempts = 1) {throw new Error(String(body));}} catch (e) {- winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${e.message}`);+ ActivityPub.helpers.log(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${e.message}`);// add to retry queueif (attempts < 12) { // stop attempting after ~2 monthsconst timeout = (4 ** attempts) * 1000; // exponential backoff