diff options
author | Andrew Godwin | 2022-12-17 17:48:33 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-17 17:48:33 -0700 |
commit | b6a8737d2e95438ada6c84feeec22db41fa73095 (patch) | |
tree | 217e671a0f822f514f9beedcb344c510b1244111 /core | |
parent | c5e00a2c7397c58bb1282f6858401c491057953c (diff) | |
download | takahe-b6a8737d2e95438ada6c84feeec22db41fa73095.tar.gz takahe-b6a8737d2e95438ada6c84feeec22db41fa73095.tar.bz2 takahe-b6a8737d2e95438ada6c84feeec22db41fa73095.zip |
Some more JSON-LD namespace fixing
Diffstat (limited to 'core')
-rw-r--r-- | core/ld.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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: |