add path separator

This commit is contained in:
byte[] 2019-11-11 12:38:26 -05:00
parent 510abe5103
commit 4827115b90

View file

@ -23,7 +23,7 @@ defmodule PhilomenaWeb.UserAttributionView do
def user_avatar(%{user: %{avatar: nil}} = object, class), def user_avatar(%{user: %{avatar: nil}} = object, class),
do: anonymous_avatar(object, class) do: anonymous_avatar(object, class)
def user_avatar(%{user: %{avatar: avatar}}, class), def user_avatar(%{user: %{avatar: avatar}}, class),
do: img_tag(avatar_url_root() <> avatar, class: class) do: img_tag(avatar_url_root() <> "/" <> avatar, class: class)
defp avatar_url_root do defp avatar_url_root do
Application.get_env(:philomena, :avatar_url_root) Application.get_env(:philomena, :avatar_url_root)