like level and profile comments

This commit is contained in:
Jill 2023-01-06 19:43:12 +03:00
parent 48c029d202
commit 03dd8f1e9b
1 changed files with 3 additions and 2 deletions

View File

@ -22,10 +22,11 @@ CrystalGauntlet.endpoints["/likeGJItem211.php"] = ->(context : HTTP::Server::Con
table = "levels"
column = "id"
when 2 # level comment like
table = "account_comments"
table = "comments"
column = "id"
when 3 # account comments
return "-1"
table = "account_comments"
column = "id"
end
is_like = (params["isLike"]? || "1").to_i