Skip to content

Commit

Permalink
Fixed accidental copy error
Browse files Browse the repository at this point in the history
  • Loading branch information
Taaku18 committed Apr 22, 2024
1 parent 1ba069d commit 23e027e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23e027e

Please sign in to comment.