Commit c443aec8 authored by lain's avatar lain

Add banner image to user json.

parent 37e406ae
Pipeline #796 failed with stage
in 2 minutes and 17 seconds
...@@ -45,6 +45,10 @@ def render("user.json", %{user: user}) do ...@@ -45,6 +45,10 @@ def render("user.json", %{user: user}) do
"icon" => %{ "icon" => %{
"type" => "Image", "type" => "Image",
"url" => User.avatar_url(user) "url" => User.avatar_url(user)
},
"image" => %{
"type" => "Image",
"url" => User.banner_url(user)
} }
} }
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment