humanmade / humanmade/comment-popularity

Not allowing negative comment weights results in double-spending problem

Open
#113 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
26
Forks
14
PR merge metrics
No merged PRs in 30d

Description

If we don't allow negative comment weights (at least internally - not necessarily for user interface), we run into the following possible situation:
* comment A has weight zero.
* user downvotes A. A still has weight zero, but a downvote is registered per user*comment
* user undoes downvote. A has weight 1.
* user upvotes A. A has weight 2.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.