don't @ people
This commit is contained in:
parent
e03e2ad4b5
commit
79038a0e00
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -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":
|
||||||
|
|
Loading…
Reference in a new issue