From 0bb61c96f1e3d10cf2c76cbce3c7af09dbf5d550 Mon Sep 17 00:00:00 2001 From: themohooks <81331307+themohooks@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:49:23 +0300 Subject: [PATCH] fix button --- app/Controllers/Api/Images/Comments/Rate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Api/Images/Comments/Rate.php b/app/Controllers/Api/Images/Comments/Rate.php index 62a1631..3687ecc 100644 --- a/app/Controllers/Api/Images/Comments/Rate.php +++ b/app/Controllers/Api/Images/Comments/Rate.php @@ -27,7 +27,7 @@ class Rate } if (Vote::comment(Auth::userid(), $_GET['wid']) === 1) { $pos = true; - $neg = true; + $neg = false; } else if (Vote::comment(Auth::userid(), $_GET['wid']) === 0) { $pos = false; $neg = true;