From 8c014e1292d28100bf8c608f5b020373cd24ded5 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 29 Dec 2020 13:33:30 -0800 Subject: [PATCH] discord: use link to post instead of direct image --- suchwow/discord.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suchwow/discord.py b/suchwow/discord.py index 725bd93..9e0a3fb 100644 --- a/suchwow/discord.py +++ b/suchwow/discord.py @@ -13,7 +13,7 @@ def post_discord_webhook(post): try: wallet = wownero.Wallet() post_wow_address = wallet.get_address(account=post.account_index) - content = f"{choice(intro)} {choice(insults)}, new SuchWow post #{post.id} by {post.submitter} is up! Tip WOW to `{post_wow_address}` to show support! {url_for('post.uploaded_file', filename=post.image_name, _external=True)}" + content = f"{choice(intro)} {choice(insults)}, new SuchWow post #{post.id} by {post.submitter} is up! {url_for('post.read', id=post.id, _external=True)}" msg = {"content": content} discord_webhook_url = config.DISCORD_URL r = requests.post(discord_webhook_url, data=msg)