fix image index

This commit is contained in:
byte[] 2019-12-07 15:13:32 -05:00
parent 3e01162176
commit 4c5fcdecb1

View file

@ -12,7 +12,7 @@ defmodule PhilomenaWeb.ImageController do
alias Philomena.Repo alias Philomena.Repo
import Ecto.Query import Ecto.Query
plug :load_image plug :load_image when action in [:show]
plug PhilomenaWeb.FilterBannedUsersPlug when action in [:new, :create] plug PhilomenaWeb.FilterBannedUsersPlug when action in [:new, :create]
plug PhilomenaWeb.UserAttributionPlug when action in [:create] plug PhilomenaWeb.UserAttributionPlug when action in [:create]