Set valid context for our extra fields (ref #1220) #142
Loading…
Reference in New Issue
No description provided.
Delete Branch "apub-context"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +11,4 @@
"stickied": "as:stickied",
"comments_enabled": {
"kind": "sc:Boolean",
"id": "pt:commentsEnabled"
What's this about here?
We use the
commentsEnabled
field for locked posts. Thept:
probably stands for Peertube cause thats where I copied it from. Dont know if we need to define that, or change it to some Lemmy namespace.@ -0,0 +5,4 @@
pub(crate) fn lemmy_context() -> Result<Vec<AnyBase>, LemmyError> {
let context_ext = AnyBase::from_arbitrary_json(json!(
{
"sc": "http://schema.org#",
Does this need to be
https://lemmy.ml#schema
or somethingI copied it directly from the Peertube json:
curl -H "Accept: application/activity+json" https://peertube.social/videos/watch/2c8aa3bb-e13f-40ef-a397-01c9696a8d43 | jq
Cool, looks good to me then.