Move forcepeak check for short circut

This commit is contained in:
Jeremy "EndenDragon" Zhang 2020-11-25 17:31:49 -08:00 committed by GitHub
parent 1b1ee06fb3
commit 1e9d443756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)