diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-04-06 10:44:48 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-04-10 06:20:02 +0200 |
commit | 3420dec494203b46d37ddc17f7e1235dc908a5b3 (patch) | |
tree | 67bbe1a637bfedd6ac7637d7c3b590b9ab3bb5f3 /lib/pleroma/web | |
parent | 9172d719ccbf84d55236007d329fc880db69fe42 (diff) | |
download | pleroma-3420dec494203b46d37ddc17f7e1235dc908a5b3.tar.gz |
Remove User.fields/1
Diffstat (limited to 'lib/pleroma/web')
-rw-r--r-- | lib/pleroma/web/activity_pub/views/user_view.ex | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/pleroma/web/activity_pub/views/user_view.ex b/lib/pleroma/web/activity_pub/views/user_view.ex index d3d79dd5e..34590b16d 100644 --- a/lib/pleroma/web/activity_pub/views/user_view.ex +++ b/lib/pleroma/web/activity_pub/views/user_view.ex @@ -79,10 +79,7 @@ defmodule Pleroma.Web.ActivityPub.UserView do emoji_tags = Transmogrifier.take_emoji_tags(user) - fields = - user - |> User.fields() - |> Enum.map(&Map.put(&1, "type", "PropertyValue")) + fields = Enum.map(user.fields, &Map.put(&1, "type", "PropertyValue")) %{ "id" => user.ap_id, |