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.
This commit is contained in:
parent
307c7afc4d
commit
bdda95a582
1 changed files with 3 additions and 0 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue