From de0332af24f207d5f992986ad7724b25eb0cd753 Mon Sep 17 00:00:00 2001 From: rebecca Date: Mon, 16 Nov 2026 20:02:17 +0000 Subject: make discord webhooks nicer --- apioforum/webhooks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/apioforum/webhooks.py b/apioforum/webhooks.py index a09f951..a0cfd11 100644 --- a/apioforum/webhooks.py +++ b/apioforum/webhooks.py @@ -106,11 +106,11 @@ class DiscordWebhook(WebhookType): payload = { "username":"apioforum", - "avatar_url":"https://d.gh0.pw/lib/exe/fetch.php?media=wiki:logo.png", + "avatar_url":"http://gh0.pw/i/a.ico", "embeds":[ { "title":"new thread: "+thread['title'], - "description":abridge(post['content']), + "description":abridge(post['content'],75), "url": url_for('thread.view_thread',thread_id=thread['id'],_external=True), "color": 0xff00ff, "fields":[ @@ -141,11 +141,11 @@ class DiscordWebhook(WebhookType): payload = { "username":"apioforum", - "avatar_url":"https://d.gh0.pw/lib/exe/fetch.php?media=wiki:logo.png", + "avatar_url":"http://gh0.pw/i/a.ico", "embeds":[ { "title":"re: "+thread['title'], - "description":abridge(post['content']), + "description":abridge(post['content'],75), "url": post_jump(post['id'],external=True), "color": 0x00ffff, "fields":[ -- cgit v1.2.3