From 7f55c633036888a9af812d3c5d090f53109f68c2 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 3 Jun 2020 21:40:42 -0400 Subject: [PATCH] reject discourage from list --- lib/philomena_web/controllers/profile_controller.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/philomena_web/controllers/profile_controller.ex b/lib/philomena_web/controllers/profile_controller.ex index 32f7bb66..780b354c 100644 --- a/lib/philomena_web/controllers/profile_controller.ex +++ b/lib/philomena_web/controllers/profile_controller.ex @@ -144,6 +144,7 @@ defmodule PhilomenaWeb.ProfileController do Bans.User |> where(user_id: ^user.id) |> Repo.all() + |> Enum.reject(&String.contains?(&1.note || "", "discourage")) render( conn,