Skip to content

Commit 23e027e

Browse files
committed
Fixed accidental copy error
1 parent 1ba069d commit 23e027e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def strtobool(val):
6464
@app.listener("before_server_start")
6565
async def init(app, loop):
6666
app.ctx.db = AsyncIOMotorClient(MONGO_URI).modmail_bot
67-
use_attachment_proxy = strtobool(os.getenv("USE_ATTACHMENT_PROXY", "https://cdn.discordapp.xyz"))
67+
use_attachment_proxy = strtobool(os.getenv("USE_ATTACHMENT_PROXY", "no"))
6868
if use_attachment_proxy:
69-
app.ctx.attachment_proxy_url = os.environ["ATTACHMENT_PROXY_URL"]
69+
app.ctx.attachment_proxy_url = os.getenv("ATTACHMENT_PROXY_URL", "https://cdn.discordapp.xyz")
7070
app.ctx.attachment_proxy_url = html.escape(app.ctx.attachment_proxy_url).rstrip("/")
7171
else:
7272
app.ctx.attachment_proxy_url = None

0 commit comments

Comments
 (0)