diff --git a/CHANGELOG.md b/CHANGELOG.md index c994ce8270b7c40d42c6f5600a51659b56c78dc9..abad281015999307b932539d2ee40f0220622f2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ setup it will now default to a generic avatar rather than render text. * Removed image alt text when rendering page comments. If an image profile link wqs broken the rendered text would not look right. +* The `activity` and `status` endpoints, when called with no extension, now + return the correct `content-type` in header. ## 1.0.1 diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0c642708b4c308276c6f7d0c400f962100048070..487822eb79cf9bbde337c66c89911f2ab35a75b4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,7 +18,7 @@ <meta name="theme-color" content="{{ if .Params.themecolor }}#{{ .Params.themecolor}}{{ else }}#000000{{ end }}"> {{ if (and .Permalink (not .IsHome)) }} - <link href="{{ .Permalink | safeURL }}status.ajson" rel='alternate' type='application/activity+json'> + <link href="{{ .Permalink | safeURL }}status" rel='alternate' type='application/activity+json'> {{end}} <meta property="og:site_name" content="{{ site.Params.siteName }}"> diff --git a/vercel.json b/vercel.json index 2f4c40cccf9ff76f6e5bbf54e74346992d21cccd..6359906578728de83157468d4c19a345fb4f4615 100644 --- a/vercel.json +++ b/vercel.json @@ -58,6 +58,10 @@ "source": "/([^/]*)/(.*)/activity", "destination": "/$1/$2/activity.ajson" }, + { + "source": "/([^/]*)/(.*)/status", + "destination": "/$1/$2/status.ajson" + }, { "source": "/.well-known/(.*)", "destination": "/api/well-known/$1" @@ -155,6 +159,24 @@ } ] }, + { + "source": "/([^/]*)/(.*)/activity", + "headers": [ + { + "key": "content-type", + "value": "application/activity+json" + } + ] + }, + { + "source": "/([^/]*)/(.*)/status", + "headers": [ + { + "key": "content-type", + "value": "application/activity+json" + } + ] + }, { "source": "/(.*).ajson", "headers": [