From bdb3a12979983b7ef51e09d113ca9e9dea3bfc8d Mon Sep 17 00:00:00 2001 From: Mint <> Date: Tue, 5 Jul 2022 00:56:10 +0300 Subject: [PATCH] Fix mention stripping in reply script --- reply.py | 1 + 1 file changed, 1 insertion(+) diff --git a/reply.py b/reply.py index 4f0f140..6188af0 100755 --- a/reply.py +++ b/reply.py @@ -76,6 +76,7 @@ class ReplyBot: def extract_toot(toot): text = utils.extract_post_content(toot) text = re.sub(r"^@\S+\s", r"", text) # remove the initial mention + text = utils.remove_mentions(cfg, text) text = text.lower() # treat text as lowercase for easier keyword matching (if this bot uses it) return text