From 4c5fcdecb185ef8a7df557d9358f738e522d4702 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Sat, 7 Dec 2019 15:13:32 -0500 Subject: [PATCH] fix image index --- lib/philomena_web/controllers/image_controller.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/philomena_web/controllers/image_controller.ex b/lib/philomena_web/controllers/image_controller.ex index 6bd3d45c..d58fc6b2 100644 --- a/lib/philomena_web/controllers/image_controller.ex +++ b/lib/philomena_web/controllers/image_controller.ex @@ -12,7 +12,7 @@ defmodule PhilomenaWeb.ImageController do alias Philomena.Repo import Ecto.Query - plug :load_image + plug :load_image when action in [:show] plug PhilomenaWeb.FilterBannedUsersPlug when action in [:new, :create] plug PhilomenaWeb.UserAttributionPlug when action in [:create]