diff --git a/lib/philomena_web/controllers/admin/subnet_ban_controller.ex b/lib/philomena_web/controllers/admin/subnet_ban_controller.ex index 839bfb07..96a819f1 100644 --- a/lib/philomena_web/controllers/admin/subnet_ban_controller.ex +++ b/lib/philomena_web/controllers/admin/subnet_ban_controller.ex @@ -10,8 +10,6 @@ defmodule PhilomenaWeb.Admin.SubnetBanController do plug :load_resource, model: SubnetBan, only: [:edit, :update, :delete] def index(conn, %{"q" => q}) when is_binary(q) do - like_q = "%#{q}%" - SubnetBan |> where([sb], sb.generated_ban_id == ^q diff --git a/lib/philomena_web/views/report_view.ex b/lib/philomena_web/views/report_view.ex index 6c89f8c8..be4d1764 100644 --- a/lib/philomena_web/views/report_view.ex +++ b/lib/philomena_web/views/report_view.ex @@ -62,7 +62,7 @@ defmodule PhilomenaWeb.ReportView do def link_to_reported_thing(conn, %User{} = r), do: link "User '#{r.name}'", to: Routes.profile_path(conn, :show, r) - def link_to_reported_thing(_conn, report) do + def link_to_reported_thing(_conn, _reportable) do "Reported item permanently destroyed." end end