utils: use litepub @context instead of that huge mess
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 8 Nov 2018 16:52:14 +0000 (16:52 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 8 Nov 2018 16:52:14 +0000 (16:52 +0000)
lib/pleroma/web/activity_pub/utils.ex

index 3362d9325728f9ef9f81f8b5dbb8f017af7ab5d5..d81c824f077e0214fcb2c570b2a4a58bbfdb131d 100644 (file)
@@ -70,18 +70,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
     %{
       "@context" => [
         "https://www.w3.org/ns/activitystreams",
-        "https://w3id.org/security/v1",
-        %{
-          "manuallyApprovesFollowers" => "as:manuallyApprovesFollowers",
-          "sensitive" => "as:sensitive",
-          "Hashtag" => "as:Hashtag",
-          "ostatus" => "http://ostatus.org#",
-          "atomUri" => "ostatus:atomUri",
-          "inReplyToAtomUri" => "ostatus:inReplyToAtomUri",
-          "conversation" => "ostatus:conversation",
-          "toot" => "http://joinmastodon.org/ns#",
-          "Emoji" => "toot:Emoji"
-        }
+        "https://litepub.github.io/litepub/context.jsonld"
       ]
     }
   end