AccountView: Return user ap_id.

This commit is contained in:
lain 2020-04-16 15:27:35 +02:00
parent e2ced04917
commit ca598e9c27
2 changed files with 4 additions and 0 deletions

View file

@ -234,6 +234,7 @@ defp do_render("show.json", %{user: user} = opts) do
# Pleroma extension
pleroma: %{
ap_id: user.ap_id,
confirmation_pending: user.confirmation_pending,
tags: user.tags,
hide_followers_count: user.hide_followers_count,

View file

@ -82,6 +82,7 @@ test "Represent a user account" do
fields: []
},
pleroma: %{
ap_id: user.ap_id,
background_image: "https://example.com/images/asuka_hospital.png",
confirmation_pending: false,
tags: [],
@ -152,6 +153,7 @@ test "Represent a Service(bot) account" do
fields: []
},
pleroma: %{
ap_id: user.ap_id,
background_image: nil,
confirmation_pending: false,
tags: [],
@ -351,6 +353,7 @@ test "represent an embedded relationship" do
fields: []
},
pleroma: %{
ap_id: user.ap_id,
background_image: nil,
confirmation_pending: false,
tags: [],