mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
Child comments were showing vote of deleted parent
Fix issue where child comment would get vote of parent if parent deleted
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
var dislikes = ${unsafe(simplejson.dumps(thing.dislikes))};
|
||||
var friends = ${unsafe(simplejson.dumps(list(thing.is_friend)))};
|
||||
$.map(likes, function(l) {
|
||||
$(".id-" + l).find(".arrow.up:first").vote("", null, null, true);
|
||||
$(".id-" + l + " > .midcol").find(".arrow.up").vote("", null, null, true);
|
||||
});
|
||||
$.map(dislikes, function(l) {
|
||||
$(".id-" + l).find(".arrow.down:first").vote("", null, null, true);
|
||||
$(".id-" + l + " > .midcol").find(".arrow.down").vote("", null, null, true);
|
||||
});
|
||||
$.map(friends, show_friend);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user