Fix Content-Type of our schema

This commit is contained in:
Chizu 2024-04-02 06:17:31 +09:00
parent 3857c7f501
commit 3f01a46e5b

View file

@ -99,6 +99,10 @@ defmodule Pleroma.Web.Endpoint do
at: "/",
from: :pleroma,
only: Pleroma.Constants.static_only_files(),
# 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
gzip: true,
cache_control_for_etags: @static_cache_control,