From 466b20bb282a0af48aa2377cf429488680c12f19 Mon Sep 17 00:00:00 2001 From: Snack Capt <captain@pirateradio.social> Date: Thu, 25 Feb 2021 19:17:35 +0100 Subject: [PATCH] fixes #1341; Update pleroma JSON-LD Schema --- api/funkwhale_api/federation/contexts.py | 4 +++- changes/changelog.d/1341.bugfix | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changes/changelog.d/1341.bugfix diff --git a/api/funkwhale_api/federation/contexts.py b/api/funkwhale_api/federation/contexts.py index a4eee1f71f..537d7f7364 100644 --- a/api/funkwhale_api/federation/contexts.py +++ b/api/funkwhale_api/federation/contexts.py @@ -316,8 +316,8 @@ CONTEXTS = [ "shortId": "LITEPUB", "contextUrl": None, "documentUrl": "http://litepub.social/ns", + # from https://git.pleroma.social/pleroma/pleroma/-/blob/release/2.2.3/priv/static/schemas/litepub-0.1.jsonld "document": { - # from https://ap.thequietplace.social/schemas/litepub-0.1.jsonld "@context": { "Emoji": "toot:Emoji", "Hashtag": "as:Hashtag", @@ -326,6 +326,7 @@ CONTEXTS = [ "conversation": {"@id": "ostatus:conversation", "@type": "@id"}, "discoverable": "toot:discoverable", "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", + "capabilities": "litepub:capabilities", "ostatus": "http://ostatus.org#", "schema": "http://schema.org#", "toot": "http://joinmastodon.org/ns#", @@ -340,6 +341,7 @@ CONTEXTS = [ "@type": "@id", }, "EmojiReact": "litepub:EmojiReact", + "ChatMessage": "litepub:ChatMessage", "alsoKnownAs": {"@id": "as:alsoKnownAs", "@type": "@id"}, } }, diff --git a/changes/changelog.d/1341.bugfix b/changes/changelog.d/1341.bugfix new file mode 100644 index 0000000000..7a4d0e3c90 --- /dev/null +++ b/changes/changelog.d/1341.bugfix @@ -0,0 +1 @@ +Update pleroma JSON-LD Schema (#1341) -- GitLab