From 1fbefa7f69aaf4bc2df64e21b89bba95142b6333 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 17 Jul 2022 19:14:01 +0200 Subject: [PATCH] fix wpd reddit mention spam --- files/helpers/offsitementions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/helpers/offsitementions.py b/files/helpers/offsitementions.py index 5f280da50f..7cb745594c 100644 --- a/files/helpers/offsitementions.py +++ b/files/helpers/offsitementions.py @@ -46,6 +46,10 @@ def get_mentions(queries): text = f'

{body}

' else: title = i["title"].replace('>', '> ') + + # Special case: a spambot says 'WPD' a lot unrelated to us. + if 'Kathrine Mclaurin' in title: continue + text = f'

{title}

' if i["selftext"]: