mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-17 22:47:59 +01:00
Fix warnings
This commit is contained in:
parent
8cb3e33714
commit
2a6976c184
2 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ defmodule PhilomenaWeb.ImageLoader do
|
|||
# Allow users to reverse the effect of hiding images,
|
||||
# if desired
|
||||
|
||||
defp maybe_custom_hide(filters, %{id: id}, "1"),
|
||||
defp maybe_custom_hide(filters, %{id: _id}, "1"),
|
||||
do: filters
|
||||
|
||||
defp maybe_custom_hide(filters, %{id: id}, _param),
|
||||
|
|
|
@ -174,7 +174,7 @@ defmodule PhilomenaWeb.ImageView do
|
|||
def hides_images?(conn), do: can?(conn, :hide, %Philomena.Images.Image{})
|
||||
|
||||
def hidden_toggle(%{assigns: %{current_user: nil}}, _route, _params), do: nil
|
||||
def hidden_toggle(%{assigns: %{current_user: user}} = conn, route, params) do
|
||||
def hidden_toggle(conn, route, params) do
|
||||
render PhilomenaWeb.ImageView, "_hidden_toggle.html", route: route, params: params, conn: conn
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue