diff --git a/main.py b/main.py index c1a6e3c..b8b7452 100755 --- a/main.py +++ b/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']