From bdda95a582e386015d981f3822a7f8c01b1f373c Mon Sep 17 00:00:00 2001 From: TLSM <104547575+TLSM@users.noreply.github.com> Date: Mon, 2 May 2022 15:42:28 -0400 Subject: [PATCH] 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. --- files/templates/comments.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/templates/comments.html b/files/templates/comments.html index 136262f9d..7d719bf1b 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -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 %}