]> Untitled Git - lemmy.git/commitdiff
Merge remote-tracking branch 'yerba/federated-moderation'
authorDessalines <tyhou13@gmx.com>
Wed, 24 Mar 2021 15:48:02 +0000 (11:48 -0400)
committerDessalines <tyhou13@gmx.com>
Wed, 24 Mar 2021 15:48:02 +0000 (11:48 -0400)
1  2 
crates/apub/src/extensions/context.rs

index bfae2935b2bbcb574e5c7f1e06033733ae138260,2dc5685a9961bc56c79eacd3423cd560607c2757..a36b848991dad7dc2e5dbd7570f44754a058d029
@@@ -9,15 -8,11 +9,16 @@@ pub(crate) fn lemmy_context() -> Result
      "sc": "http://schema.org#",
      "sensitive": "as:sensitive",
      "stickied": "as:stickied",
 +    "pt": "https://join.lemmy.ml#",
      "comments_enabled": {
 -      "kind": "sc:Boolean",
 +      "type": "sc:Boolean",
        "id": "pt:commentsEnabled"
-     }
+     },
+     "moderators": "as:moderators"
    }))?;
 -  Ok(vec![AnyBase::from(context()), context_ext])
 +  Ok(vec![
 +    AnyBase::from(context()),
 +    context_ext,
 +    AnyBase::from(Url::parse("https://w3id.org/security/v1")?),
 +  ])
  }