Node.js based forum software built for the modern web
fix: stringify error body in ap.send
Julian Lam401b4c5fa699
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex 0fd721a34d..f9ff9c3507 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -235,7 +235,7 @@ ActivityPub.send = async (type, id, targets, payload) => {if (String(response.statusCode).startsWith('2')) {winston.verbose(`[activitypub/send] Successfully sent ${payload.type} to ${uri}`);} else {- winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${body}`);+ winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${String(body)}`);}} catch (e) {winston.warn(`[activitypub/send] Could not send ${payload.type} to ${uri}; error: ${e.message}`);