Node.js based forum software built for the modern web
fix: relax activity-failed condition
Julian Lam3339baac18b0
diff --git a/src/activitypub/index.js b/src/activitypub/index.jsindex 0919ea1636..17abe9b282 100644--- a/src/activitypub/index.js+++ b/src/activitypub/index.js@@ -187,7 +187,7 @@ ActivityPub.send = async (uid, targets, payload) => {body: payload,});- if (response.statusCode !== 201) {+ if (!String(response.statusCode).startsWith('2')) {// todo: i18n thisthrow new Error('activity-failed');}