Fix Content-Type of our schema

Strict servers fail to process anything from us otherwise.

Fixes: akkoma#716
This commit is contained in:
Oneric 2024-03-07 00:18:00 +01:00
parent ba558c0c24
commit e88d0a2853

View file

@ -98,6 +98,10 @@ defmodule Pleroma.Web.Endpoint do
at: "/", at: "/",
from: :pleroma, from: :pleroma,
only: Pleroma.Web.static_paths(), only: Pleroma.Web.static_paths(),
# JSON-LD is accepted by some servers for AP objects and activities,
# thus only enable it here instead of a global extension mapping
# (it's our only *.jsonld file anyway)
content_types: %{"litepub-0.1.jsonld" => "application/ld+json"},
# credo:disable-for-previous-line Credo.Check.Readability.MaxLineLength # credo:disable-for-previous-line Credo.Check.Readability.MaxLineLength
gzip: true, gzip: true,
cache_control_for_etags: @static_cache_control, cache_control_for_etags: @static_cache_control,