Provide some stuff we know of for Mastodon schema

Should fix GoToSocial pulls. Refs #223.
This commit is contained in:
Andrew Godwin 2022-12-21 18:23:12 +00:00
parent ed83726247
commit bf5a46df38
2 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@
__pycache__/
api-test.*
notes.md
notes.py

View File

@ -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",
},
},
},
}