From e63f1234a7fa4c5d9d9be7dafd07be498dcbe1ee Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 20 Feb 2025 12:50:05 -0500 Subject: [PATCH] fix: typo --- src/middleware/activitypub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/activitypub.js b/src/middleware/activitypub.js index ee7d8a2460..05f67d3338 100644 --- a/src/middleware/activitypub.js +++ b/src/middleware/activitypub.js @@ -16,7 +16,7 @@ middleware.assertS2S = async function (req, res, next) { return next('route'); } - const pass = activitypub.helpers.assertAccepts(accept) || + const pass = activitypub.helpers.assertAccept(accept) || (contentType && activitypub._constants.acceptableTypes.includes(contentType)); if (!pass) {