Execute new_vote on comments as well.

This fixes user page top comments of all time listings not being
updated.
This commit is contained in:
Neil Williams
2012-12-07 13:23:50 -08:00
parent 8b4b3961d9
commit 91a34e53d1

View File

@@ -1437,9 +1437,10 @@ def handle_vote(user, thing, dir, ip, organic,
g.log.error("duplicate vote for: %s" % str((user, thing, dir)))
return
new_vote(v, foreground=foreground, timer=timer)
timestamps = []
if isinstance(thing, Link):
new_vote(v, foreground=foreground, timer=timer)
#update the modified flags
if user._id == thing.author_id: