From bf5a46df38030be41c70e3c27252699ebadf7b3c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 21 Dec 2022 18:23:12 +0000 Subject: [PATCH] Provide some stuff we know of for Mastodon schema Should fix GoToSocial pulls. Refs #223. --- .gitignore | 1 + core/ld.py | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index fec58af..8b8f355 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ __pycache__/ api-test.* notes.md +notes.py diff --git a/core/ld.py b/core/ld.py index 60ec50b..5ac48a7 100644 --- a/core/ld.py +++ b/core/ld.py @@ -362,7 +362,15 @@ schemas = { "contentType": "application/ld+json", "documentUrl": "http://joinmastodon.org/ns", "contextUrl": None, - "document": {}, + "document": { + "@context": { + "toot": "http://joinmastodon.org/ns#", + "discoverable": "toot:discoverable", + "devices": "toot:devices", + "featured": "toot:featured", + "featuredTags": "toot:featuredTags", + }, + }, }, }