reject discourage from list

This commit is contained in:
byte[] 2020-06-03 21:40:42 -04:00
parent 5dfd8f5b60
commit 7f55c63303

View file

@ -144,6 +144,7 @@ defmodule PhilomenaWeb.ProfileController do
Bans.User Bans.User
|> where(user_id: ^user.id) |> where(user_id: ^user.id)
|> Repo.all() |> Repo.all()
|> Enum.reject(&String.contains?(&1.note || "", "discourage"))
render( render(
conn, conn,