From cc2b9735fc9b43458ff670df239f3fe0c963d964 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 19 Dec 2020 11:33:38 +0000 Subject: [PATCH] Show filtered words on moderator info screen --- webapp_moderation.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/webapp_moderation.py b/webapp_moderation.py index 63889536b..46c5ba634 100644 --- a/webapp_moderation.py +++ b/webapp_moderation.py @@ -185,6 +185,22 @@ def htmlModerationInfo(cssCache: {}, translate: {}, blockedStr + '' infoForm += '' infoShown = True + + filtersFilename = baseDir + '/accounts/filters.txt' + if os.path.isfile(filtersFilename): + with open(filtersFilename, "r") as f: + filteredStr = f.read() + infoForm += '
' + infoForm += \ + '
' + \ + translate['Filtered words'] + '' + infoForm += \ + ' ' + infoForm += '
' + infoShown = True + if not infoShown: infoForm += \ '

' + \