From 76f8a7656b723bf0d37d60aee551d0cca86d19cb Mon Sep 17 00:00:00 2001
From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me>
Date: Fri, 13 Oct 2023 19:09:42 -0400
Subject: [PATCH] Making rewrite for ActivityPub work for plain json as well

---
 vercel.json | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/vercel.json b/vercel.json
index b81d4cafe..a273ea61b 100644
--- a/vercel.json
+++ b/vercel.json
@@ -27,6 +27,17 @@
       ],
       "destination": "/$1/$2/status.ajson"
     },
+    {
+      "source": "/([^/]*)/(.*)/",
+      "has": [
+        {
+          "type": "header",
+          "key": "Accept",
+          "value": "application/json"
+        }
+      ],
+      "destination": "/$1/$2/status.ajson"
+    },
     {
       "source": "/([^/]*)/(.*)/",
       "missing": [
@@ -34,6 +45,11 @@
           "type": "header",
           "key": "Accept",
           "value": "application/activity\\+json"
+        },
+        {
+          "type": "header",
+          "key": "Accept",
+          "value": "application/json"
         }
       ],
       "destination": "/$1/$2/status.html"
-- 
GitLab