fix(web): ClickZans::click
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-07 20:13:57 +08:00
parent 80e8b72fb6
commit 62a63c4c6e
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -21,4 +21,4 @@ if (!ClickZans::canClickZan($_POST['id'], $_POST['type'], Auth::user())) {
die('<div class="text-danger">no permission</div>'); die('<div class="text-danger">no permission</div>');
} }
die(ClickZans::click($_POST['id'], $_POST['type'], Auth::user(), $_POST['delta'], $_POST['show-text'])); die(ClickZans::click($_POST['id'], $_POST['type'], Auth::user(), $_POST['delta'], $_POST['show-text'] !== 'false'));