aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2018-02-22 08:24:18 +0100
committerlain <lain@soykaf.club>2018-02-22 08:24:18 +0100
commitc443aec83d31d838c50fb888d585f5266091b09b (patch)
treee3dba9fe9822a1cd0562346d9c0aaefc6bdebb24 /lib
parent37e406ae36e4b7f922cb46d7873ec584768a721b (diff)
downloadpleroma-c443aec83d31d838c50fb888d585f5266091b09b.tar.gz
Add banner image to user json.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/activity_pub/views/user_view.ex4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/pleroma/web/activity_pub/views/user_view.ex b/lib/pleroma/web/activity_pub/views/user_view.ex
index b3b02c4fb..b96ac7b27 100644
--- a/lib/pleroma/web/activity_pub/views/user_view.ex
+++ b/lib/pleroma/web/activity_pub/views/user_view.ex
@@ -45,6 +45,10 @@ defmodule Pleroma.Web.ActivityPub.UserView do
"icon" => %{
"type" => "Image",
"url" => User.avatar_url(user)
+ },
+ "image" => %{
+ "type" => "Image",
+ "url" => User.banner_url(user)
}
}
end