From 8046ec0d1c290420a0820b79849500af37a5739c Mon Sep 17 00:00:00 2001 From: Yorhel Date: Wed, 8 Jan 2020 14:25:07 +0100 Subject: ulist: Uh, let's also allow changing a vote when there already is one --- lib/VNWeb/User/Lists.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VNWeb/User/Lists.pm b/lib/VNWeb/User/Lists.pm index 1961c962..00ec2470 100644 --- a/lib/VNWeb/User/Lists.pm +++ b/lib/VNWeb/User/Lists.pm @@ -383,7 +383,7 @@ sub vn_ { td_ mkclass(tc_vote => 1, compact => $own, stealth => $own), sub { txt_ fmtvote $v->{vote} if !$own; elm_ 'UList.VoteEdit' => $VNVOTE, { uid => $uid, vid => $v->{id}, vote => fmtvote($v->{vote}) }, fmtvote $v->{vote} - if $own && sprintf('%08d', $v->{c_released}||0) < strftime '%Y%m%d', gmtime; + if $own && ($v->{vote} || sprintf('%08d', $v->{c_released}||0) < strftime '%Y%m%d', gmtime); } if in vote => $opt->{c}; td_ class => 'tc_rating', sub { -- cgit v1.2.3