fix empty friends list error

This commit is contained in:
Jill 2023-01-06 18:00:49 +03:00
parent cffea4521d
commit 4b23ad77c0
1 changed files with 4 additions and 0 deletions

View File

@ -46,5 +46,9 @@ CrystalGauntlet.endpoints["/getGJUserList20.php"] = ->(context : HTTP::Server::C
DATABASE.exec("update friend_links set read_at_2 = ? where account_id_2 = ? and read_at_2 is null", Time.utc.to_s(Format::TIME_FORMAT), account_id)
end
if users.empty?
return "-2"
end
return users.join("|")
}