fix: relax activity-failed condition

This commit is contained in:
Julian Lam
2023-12-22 16:02:27 -05:00
parent b93a9eec7e
commit 3339baac18

View File

@@ -187,7 +187,7 @@ ActivityPub.send = async (uid, targets, payload) => {
body: payload,
});
if (response.statusCode !== 201) {
if (!String(response.statusCode).startsWith('2')) {
// todo: i18n this
throw new Error('activity-failed');
}