From 23e027ed26387cded6f978cc103e4e022036cfc4 Mon Sep 17 00:00:00 2001 From: Taku <45324516+Taaku18@users.noreply.github.com> Date: Mon, 22 Apr 2024 15:30:23 -0700 Subject: [PATCH] Fixed accidental copy error --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index ea302eb..1dfa0bd 100644 --- a/app.py +++ b/app.py @@ -64,9 +64,9 @@ def strtobool(val): @app.listener("before_server_start") async def init(app, loop): app.ctx.db = AsyncIOMotorClient(MONGO_URI).modmail_bot - use_attachment_proxy = strtobool(os.getenv("USE_ATTACHMENT_PROXY", "https://cdn.discordapp.xyz")) + use_attachment_proxy = strtobool(os.getenv("USE_ATTACHMENT_PROXY", "no")) if use_attachment_proxy: - app.ctx.attachment_proxy_url = os.environ["ATTACHMENT_PROXY_URL"] + app.ctx.attachment_proxy_url = os.getenv("ATTACHMENT_PROXY_URL", "https://cdn.discordapp.xyz") app.ctx.attachment_proxy_url = html.escape(app.ctx.attachment_proxy_url).rstrip("/") else: app.ctx.attachment_proxy_url = None