fix viewing users' levels

This commit is contained in:
Jill 2023-01-04 02:21:52 +03:00
parent 9b55f5c423
commit 2c4ddaf0e8
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ CrystalGauntlet.endpoints["/getGJLevels21.php"] = ->(context : HTTP::Server::Con
order = "likes desc"
queryParams << "levels.created_at > \"#{(Time.utc - 7.days).to_s(Format::TIME_FORMAT)}\""
when "5" # made by user
if params["local"] == "1"
if params["local"]? == "1"
user_id, account_id = Accounts.auth(params)
if !(user_id && account_id)
return "-1"