From c443aec83d31d838c50fb888d585f5266091b09b Mon Sep 17 00:00:00 2001 From: lain Date: Thu, 22 Feb 2018 08:24:18 +0100 Subject: [PATCH] Add banner image to user json. --- lib/pleroma/web/activity_pub/views/user_view.ex | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.45.2