forked from AkkomaGang/akkoma
user view: unify a @context entry that was missed
This commit is contained in:
parent
59cf7cf235
commit
f733470037
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,6 @@ def render("user.json", %{user: %{nickname: nil} = user}) do
|
||||||
public_key = :public_key.pem_encode([public_key])
|
public_key = :public_key.pem_encode([public_key])
|
||||||
|
|
||||||
%{
|
%{
|
||||||
"@context" => "https://www.w3.org/ns/activitystreams",
|
|
||||||
"id" => user.ap_id,
|
"id" => user.ap_id,
|
||||||
"type" => "Application",
|
"type" => "Application",
|
||||||
"following" => "#{user.ap_id}/following",
|
"following" => "#{user.ap_id}/following",
|
||||||
|
@ -36,6 +35,7 @@ def render("user.json", %{user: %{nickname: nil} = user}) do
|
||||||
"sharedInbox" => "#{Pleroma.Web.Endpoint.url()}/inbox"
|
"sharedInbox" => "#{Pleroma.Web.Endpoint.url()}/inbox"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|> Map.merge(Utils.make_json_ld_header())
|
||||||
end
|
end
|
||||||
|
|
||||||
def render("user.json", %{user: user}) do
|
def render("user.json", %{user: user}) do
|
||||||
|
|
Loading…
Reference in a new issue