'Apply the effects of the vote to the thing that was voted on.'

def apply_effects(self):

    if (self.previous_vote and self.previous_vote.affected_thing_attr):
        self.thing._incr(self.previous_vote.affected_thing_attr, (-1))
    if self.affected_thing_attr:
        self.thing._incr(self.affected_thing_attr, 1)
    if self.effects.affects_karma:
        change = self.effects.karma_change
        if self.previous_vote:
            change -= self.previous_vote.effects.karma_change
        if change:
            self.thing.author_slow.incr_karma(kind=self.thing.affects_karma_type, sr=self.thing.subreddit_slow, amt=change)
    hooks.get_hook('vote.apply_effects').call(vote=self)
