handle spaces oops
This commit is contained in:
parent
6555cc9c9e
commit
adba7ca14b
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -59,7 +59,7 @@ class ReplyListener(mastodon.StreamListener):
|
|||
toot = "Here's what I found by searching for images with the query \"{}\".".format(q)
|
||||
else:
|
||||
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)
|
||||
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 = acct + " " + toot
|
||||
visibility = notification['status']['visibility']
|
||||
|
|
Loading…
Reference in a new issue