Merge branch 'feature/jsonld-context-cleanup' into 'develop'
jsonld context cleanup Closes #369 See merge request pleroma/pleroma!434
This commit is contained in:
commit
a44d87f059
@ -70,18 +70,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
|
|||||||
%{
|
%{
|
||||||
"@context" => [
|
"@context" => [
|
||||||
"https://www.w3.org/ns/activitystreams",
|
"https://www.w3.org/ns/activitystreams",
|
||||||
"https://w3id.org/security/v1",
|
"https://litepub.github.io/litepub/context.jsonld"
|
||||||
%{
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
@ -17,7 +17,6 @@ defmodule Pleroma.Web.ActivityPub.UserView 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 @@ defmodule Pleroma.Web.ActivityPub.UserView 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 New Issue
Block a user