Fix vote counting to only count main target notes (not mixed in ones)
This commit is contained in:
parent
3f72af9994
commit
fb0279f311
3 changed files with 15 additions and 16 deletions
|
@ -12,11 +12,5 @@ module NotesHelper
|
|||
!@mixed_targets || @main_target_type == note.noteable_type
|
||||
end
|
||||
|
||||
def note_vote_class(note)
|
||||
if note.upvote?
|
||||
"vote upvote"
|
||||
elsif note.downvote?
|
||||
"vote downvote"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue