don't @ people

This commit is contained in:
Lynne Megido 2019-05-11 02:47:04 +10:00
parent e03e2ad4b5
commit 79038a0e00

View file

@ -61,6 +61,8 @@ class ReplyListener(mastodon.StreamListener):
result = j['results'][0] 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 = 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 toot = acct + " " + toot
visibility = notification['status']['visibility'] visibility = notification['status']['visibility']
if visibility == "public": if visibility == "public":