From 1e9d443756cec539be55d5903f53fde73d0d40dd Mon Sep 17 00:00:00 2001 From: "Jeremy \"EndenDragon\" Zhang" Date: Wed, 25 Nov 2020 17:31:49 -0800 Subject: [PATCH] Move forcepeak check for short circut --- webapp/titanembeds/blueprints/embed/embed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/blueprints/embed/embed.py b/webapp/titanembeds/blueprints/embed/embed.py index 5825015..f5a16e9 100644 --- a/webapp/titanembeds/blueprints/embed/embed.py +++ b/webapp/titanembeds/blueprints/embed/embed.py @@ -98,7 +98,7 @@ def guild_embed(guild_id): same_target=request.args.get("sametarget", False) == "true", userscalable=request.args.get("userscalable", "True").lower().startswith("t"), fixed_sidenav=request.args.get("fixedsidenav", "False").lower().startswith("t"), - is_peak=is_peak(guild_id) or request.args.get("forcepeak", False) == "1" + is_peak=request.args.get("forcepeak", False) == "1" or is_peak(guild_id) ) abort(404)