diff options
author | lain <lain@soykaf.club> | 2018-02-22 08:24:18 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-02-22 08:24:18 +0100 |
commit | c443aec83d31d838c50fb888d585f5266091b09b (patch) | |
tree | e3dba9fe9822a1cd0562346d9c0aaefc6bdebb24 /lib | |
parent | 37e406ae36e4b7f922cb46d7873ec584768a721b (diff) | |
download | pleroma-c443aec83d31d838c50fb888d585f5266091b09b.tar.gz |
Add banner image to user json.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/activity_pub/views/user_view.ex | 4 |
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 |