From b6a8737d2e95438ada6c84feeec22db41fa73095 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 17 Dec 2022 17:48:33 -0700 Subject: Some more JSON-LD namespace fixing --- core/ld.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/ld.py b/core/ld.py index 946e030..389cd94 100644 --- a/core/ld.py +++ b/core/ld.py @@ -410,12 +410,15 @@ def canonicalise(json_data: dict, include_security: bool = False) -> dict: context = [ "https://www.w3.org/ns/activitystreams", { + "blurhash": "toot:blurhash", + "Emoji": "toot:Emoji", + "focalPoint": {"@container": "@list", "@id": "toot:focalPoint"}, + "Hashtag": "as:Hashtag", + "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", + "Public": "as:Public", "sensitive": "as:sensitive", "toot": "http://joinmastodon.org/ns#", "votersCount": "toot:votersCount", - "Hashtag": "as:Hashtag", - "Public": "as:Public", - "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", }, ] if include_security: -- cgit v1.2.3