philomena/lib/philomena_web/views/channel_view.ex

8 lines
228 B
Elixir
Raw Normal View History

2019-11-30 07:30:45 +01:00
defmodule PhilomenaWeb.ChannelView do
use PhilomenaWeb, :view
2024-08-05 14:22:11 +02:00
def channel_image(%{thumbnail_url: thumbnail_url}) do
PhilomenaProxy.Camo.image_url(thumbnail_url || "https://picarto.tv/images/missingthumb.jpg")
2019-11-30 07:30:45 +01:00
end
end