From 79038a0e000aefcb25dbcbe3aaf60d5141f162f8 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sat, 11 May 2019 02:47:04 +1000 Subject: [PATCH] don't @ people --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 2242717..d6d9afd 100755 --- a/main.py +++ b/main.py @@ -61,6 +61,8 @@ class ReplyListener(mastodon.StreamListener): result = j['results'][0] toot = result['title'] + "\n" + result['url'] + "\n" + result['content'] + "\n" + "(Score: {})\nMore results: {}{}".format(result['score'], "https://searx.lynnesbian.space/?q=", q.replace(" ", "%20")) + toot = toot.replace("@", "@\u200B") # don't @ people + toot = acct + " " + toot visibility = notification['status']['visibility'] if visibility == "public":