mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
reject discourage from list
This commit is contained in:
parent
5dfd8f5b60
commit
7f55c63303
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue