mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: relax activity-failed condition
This commit is contained in:
@@ -187,7 +187,7 @@ ActivityPub.send = async (uid, targets, payload) => {
|
|||||||
body: payload,
|
body: payload,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.statusCode !== 201) {
|
if (!String(response.statusCode).startsWith('2')) {
|
||||||
// todo: i18n this
|
// todo: i18n this
|
||||||
throw new Error('activity-failed');
|
throw new Error('activity-failed');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user