user view: unify a @context entry that was missed
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 8 Nov 2018 16:51:48 +0000 (16:51 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 8 Nov 2018 16:51:48 +0000 (16:51 +0000)
lib/pleroma/web/activity_pub/views/user_view.ex

index 16419e1b7bed578e62b61201689974aa016f8cb9..eb335813d2bf41333a8dfc6f334e85a57c92eb00 100644 (file)
@@ -17,7 +17,6 @@ defmodule Pleroma.Web.ActivityPub.UserView do
     public_key = :public_key.pem_encode([public_key])
 
     %{
-      "@context" => "https://www.w3.org/ns/activitystreams",
       "id" => user.ap_id,
       "type" => "Application",
       "following" => "#{user.ap_id}/following",
@@ -36,6 +35,7 @@ defmodule Pleroma.Web.ActivityPub.UserView do
         "sharedInbox" => "#{Pleroma.Web.Endpoint.url()}/inbox"
       }
     }
+    |> Map.merge(Utils.make_json_ld_header())
   end
 
   def render("user.json", %{user: user}) do