mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-01 03:46:44 +01:00
primitive filtering
This commit is contained in:
parent
83b63bbd4b
commit
c581a43073
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ defmodule PhilomenaWeb.ActivityController do
|
|||
Topic
|
||||
|> join(:inner, [t], f in Forum, on: [id: t.forum_id])
|
||||
|> where([t, _f], t.hidden_from_users == false)
|
||||
|> where([t, _f], not ilike(t.title, "NSFW"))
|
||||
|> where([t, _f], fragment("? !~ ?", t.title, "NSFW"))
|
||||
|> where([_t, f], f.access_level == "normal")
|
||||
|> order_by(desc: :last_replied_to_at)
|
||||
|> preload([:forum, last_post: :user])
|
||||
|
|
Loading…
Reference in a new issue