forked from AkkomaGang/akkoma
Add banner image to user json.
This commit is contained in:
parent
37e406ae36
commit
c443aec83d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue