AccountView: Return user ap_id.
authorlain <lain@soykaf.club>
Thu, 16 Apr 2020 13:27:35 +0000 (15:27 +0200)
committerlain <lain@soykaf.club>
Thu, 16 Apr 2020 13:27:35 +0000 (15:27 +0200)
lib/pleroma/web/mastodon_api/views/account_view.ex
test/web/mastodon_api/views/account_view_test.exs

index 8fb96a22ab482494b115f1a54284bf9f193ba379..f204537440486ea25ff9871e8af18d7b30969e81 100644 (file)
@@ -234,6 +234,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountView do
 
       # Pleroma extension
       pleroma: %{
+        ap_id: user.ap_id,
         confirmation_pending: user.confirmation_pending,
         tags: user.tags,
         hide_followers_count: user.hide_followers_count,
index 4435f69ff6669faf6289651badcbcb4540ef31f2..2be0d8d0ff05b0479354cdab259ae37898b71d28 100644 (file)
@@ -82,6 +82,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest 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 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
         fields: []
       },
       pleroma: %{
+        ap_id: user.ap_id,
         background_image: nil,
         confirmation_pending: false,
         tags: [],
@@ -351,6 +353,7 @@ defmodule Pleroma.Web.MastodonAPI.AccountViewTest do
         fields: []
       },
       pleroma: %{
+        ap_id: user.ap_id,
         background_image: nil,
         confirmation_pending: false,
         tags: [],