This commit is contained in:
Aevann1 2022-03-05 00:46:20 +02:00
parent 8d21254df8
commit 36afb28fe7
8 changed files with 42 additions and 26 deletions

View file

@ -324,6 +324,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, ccmode="false"
if v and filter_words:
for word in filter_words:
word = word.replace('\\', '').replace('_', '\_').replace('%', '\%').strip()
posts=posts.filter(not_(Submission.title.ilike(f'%{word}%')))
if not (v and v.shadowbanned):