You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def avatar_url(user) do
cond do
user.github_id ->
"https://avatars0.githubusercontent.com/u/#{user.github_id}"
user.discord_id ->
"https://cdn.discordapp.com/avatars/#{user.discord_id}/#{user.discord_avatar}.png"
true ->
"https://avatars0.githubusercontent.com/u/35539033"
end
end
Добавить поддержку граватар, если у пользователя нет аватара
Или добавить опцию выбора откуда загружать аватар (граватар или условный гитхаб)
The text was updated successfully, but these errors were encountered: