summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2020-01-08 14:25:07 +0100
committerYorhel <git@yorhel.nl>2020-01-08 14:25:07 +0100
commit8046ec0d1c290420a0820b79849500af37a5739c (patch)
treeadedd591c3a03b76f769a1b262d7278615cc68cf
parented6abcb87a70091b3813ca7be8b520572c6a5133 (diff)
ulist: Uh, let's also allow changing a vote when there already is one
-rw-r--r--lib/VNWeb/User/Lists.pm2
1 files changed, 1 insertions, 1 deletions
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 {