diff options
| author | rebecca <ubq323@ubq323.website> | 2026-11-16 20:02:17 +0000 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-11-16 20:02:17 +0000 |
| commit | de0332af24f207d5f992986ad7724b25eb0cd753 (patch) | |
| tree | 13fd8f69f3f637195b2ec386c15fa0a5b0712e9a | |
| parent | 55a1f69c9cf9089d697c60e2ee0e57d5b991d132 (diff) | |
| -rw-r--r-- | apioforum/webhooks.py | 8 |
1 files 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":[ |
