From 85b72109a3bae0bc1011ef9918ae0c25dd5ead99 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 20 Sep 2022 20:05:36 +0200 Subject: [PATCH 1/2] increase badge width from 200px to 400px --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 7d3c44bb9..fa6cf2a99 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -222,7 +222,7 @@ def comment(v): g.db.flush() filename = f'files/assets/images/badges/{badge.id}.webp' copyfile(oldname, filename) - process_image(filename, 200) + process_image(filename, 400) requests.post(f'https://api.cloudflare.com/client/v4/zones/{CF_ZONE}/purge_cache', headers=CF_HEADERS, data=f'{{"files": ["https://{SITE}/assets/images/badges/{badge.id}.webp"]}}', timeout=5) except Exception as e: From 96887646a9718a4560c0443c34e0bf4aad658bfe Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 20 Sep 2022 20:06:14 +0200 Subject: [PATCH 2/2] remove linebreak --- files/templates/default.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/templates/default.html b/files/templates/default.html index 6cd77df38..d647c1b46 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -391,4 +391,4 @@ {% endif %} - + \ No newline at end of file