Add banner image to user json.
authorlain <lain@soykaf.club>
Thu, 22 Feb 2018 07:24:18 +0000 (08:24 +0100)
committerlain <lain@soykaf.club>
Thu, 22 Feb 2018 07:24:18 +0000 (08:24 +0100)
lib/pleroma/web/activity_pub/views/user_view.ex

index b3b02c4fba230a989288fc2deac55006ff8b65b9..b96ac7b27855bf3b038c416cae9c89d6a6cebee0 100644 (file)
@@ -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