forked from rDrama/rDrama
1
0
Fork 0

Partially revert self-upvote UI bug fix. (#239)

Turns out the snippet in templates/comments.html was necessary to
get proper behavior in notifications.

Might come back to debug this later, but people use notifications more
than they deal with edge case self-upvotes, so reverting for now.

The changes to prevent coin fuckery with self-upvoting appear to work
correctly in the wild, so leaving those in place.
master
TLSM 2022-05-02 15:42:28 -04:00 committed by GitHub
parent 18509b653a
commit 8eb86b965c
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@
{% if v %}
{% set voted=c.voted %}
{% if not voted and v.id == c.author_id %}
{% set voted=1 %}
{% endif %}
{% else %}
{% set voted=-2 %}
{% endif %}