From c218e50c1f6a70579a1b5d5b4da2f3a082bc2baa Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 28 Mar 2023 21:51:18 -0400 Subject: [PATCH] Completely remove channel_url_root --- lib/philomena_web/views/channel_view.ex | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/philomena_web/views/channel_view.ex b/lib/philomena_web/views/channel_view.ex index a16112eb..b4dc532e 100644 --- a/lib/philomena_web/views/channel_view.ex +++ b/lib/philomena_web/views/channel_view.ex @@ -1,9 +1,6 @@ defmodule PhilomenaWeb.ChannelView do use PhilomenaWeb, :view - def channel_image(%{channel_image: image, is_live: false}) when image not in [nil, ""], - do: channel_url_root() <> "/" <> image - def channel_image(%{type: "LivestreamChannel", short_name: short_name}) do now = DateTime.utc_now() |> DateTime.to_unix(:microsecond) @@ -23,8 +20,4 @@ defmodule PhilomenaWeb.ChannelView do Camo.Image.image_url( "https://static-cdn.jtvnw.net/previews-ttv/live_user_#{String.downcase(short_name)}-320x180.jpg" ) - - defp channel_url_root do - Application.get_env(:philomena, :channel_url_root) - end end