mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-05 03:00:15 -04:00
gilding: Fix bug where thingupdater counts were incremented.
The value supplied by the inlined thingupdater data is the current count and should not be incremented by gildComment.
This commit is contained in:
@@ -75,8 +75,10 @@ r.gold = {
|
||||
var tagline = comment.children('.entry').find('p.tagline'),
|
||||
icon = tagline.find('.gilded-comment-icon')
|
||||
|
||||
gilding_count = gilding_count || icon.data('count') || 0
|
||||
gilding_count++
|
||||
if (gilding_count == null) {
|
||||
gilding_count = icon.data('count') || 0
|
||||
gilding_count++
|
||||
}
|
||||
|
||||
comment.addClass('gilded user-gilded')
|
||||
if (!icon.length) {
|
||||
|
||||
Reference in New Issue
Block a user