add review system #3

Merged
Belupeti merged 5 commits from dev into master 2026-08-18 19:31:58 +02:00
Showing only changes of commit f1fbd8b782 - Show all commits
+2 -2
View File
@@ -36,11 +36,11 @@
{
if (type == 1) {
this.likes++;
if (this.current != 0) this.dislikes--;
if (this.current == -1) this.dislikes--;
}
else if (type == -1) {
this.dislikes++;
if (this.current != 0) this.likes--;
if (this.current == 1) this.likes--;
}
this.current = type;