Hi guys, I'm using Comment Popularity with nonlogged-in voting, and I found a bug that lets a single user "walk up" or "walk down" the votes on any comment to any arbitrary number. The first 38 seconds of this video demo the problem, and seconds 38 and onward show how the plugin should function.
I got the correct behavior by inserting an elseif statement inside the section commented with "see if user has already voted" around line 615 in class-comment-popularity.php:
Hi guys, I'm using Comment Popularity with nonlogged-in voting, and I found a bug that lets a single user "walk up" or "walk down" the votes on any comment to any arbitrary number. The first 38 seconds of this video demo the problem, and seconds 38 and onward show how the plugin should function.
https://www.youtube.com/watch?v=32J3Oa6RaFA
I got the correct behavior by inserting an
elseif
statement inside the section commented with "see if user has already voted" around line 615 inclass-comment-popularity.php
:It's crude, so I'm sure you can do something that integrates more gracefully.