followed filter

This commit is contained in:
Jill 2023-01-06 13:20:33 +03:00
parent 84b782e8cd
commit 6f447c4820
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ CrystalGauntlet.endpoints["/getGJLevels21.php"] = ->(context : HTTP::Server::Con
# todo: order by rate date
queryParams << "levels.stars is not null"
when "12" # followed
# todo
clean_levels = params["followed"].split(",").map { |v| v.to_i }
queryParams << "users.account_id in (#{clean_levels.join(",")})"
when "13" # friends
user_id, account_id = Accounts.auth(params)
if !(user_id && account_id)