Navigation Menu

Skip to content

Commit

Permalink
Revert to "approved" when downvoting from "cherry-picked"
Browse files Browse the repository at this point in the history
  • Loading branch information
vpit committed Jul 30, 2010
1 parent f80aa38 commit adf44c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cherrymaint.pm
Expand Up @@ -163,6 +163,9 @@ get '/mark' => sub {
2,
[ $user ],
];
} elsif ($old_value == 5) {
# Downvoting from cherry-picked, revert to the "approved" state
$state->[0] = 4;
} elsif ($old_value < 5) {
my @votes = @{ $state->[1] || [] };
if ($old_value < $value) {
Expand Down

0 comments on commit adf44c9

Please sign in to comment.