Fix mention stripping in reply script
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user