From 46740167435b2c273be9f682dcf838426687cf60 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Thu, 3 Oct 2024 12:33:36 -0400 Subject: [PATCH] feat: Replace hard-coded image links with vanity URL's --- lib/dotcom/map_helpers.ex | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lib/dotcom/map_helpers.ex b/lib/dotcom/map_helpers.ex index 17612e046f..cd62b14e4b 100644 --- a/lib/dotcom/map_helpers.ex +++ b/lib/dotcom/map_helpers.ex @@ -55,18 +55,14 @@ defmodule Dotcom.MapHelpers do @spec image(atom) :: String.t() def image(:subway) do - static_url( - DotcomWeb.Endpoint, - "/sites/default/files/media/2023-01/2022-12-12-subway-map-v37f.jpg" - ) + static_url(DotcomWeb.Endpoint, "/subway-map-image") end def image(:commuter_rail) do - static_url( - DotcomWeb.Endpoint, - "/sites/default/files/maps/2019-04-08-commuter-rail-map-v33.png" - ) + static_url(DotcomWeb.Endpoint, "/cr-map-image") end - def image(:ferry), do: "/ferry-map" + def image(:ferry) do + static_url(DotcomWeb.Endpoint, "/ferry-map-image") + end end