Allow upvoting from index even though we can't tally from there.

This commit is contained in:
ccd0 2016-03-28 02:22:18 -07:00 committed by name
parent 8f3879c9bd
commit 4ba66d7833

View File

@ -4,7 +4,7 @@ Upvotes =
regexp: /(?:^>.*\n)+\s*(?:\u305D\u3046\u3060\u306D|this)/gmi
init: ->
return unless g.VIEW is 'thread' and Conf['Upvotes']
return unless g.VIEW in ['thread', 'index'] and Conf['Upvotes']
@textPosted = if g.BOARD.ID is 'r9k' then 'This.' else @text
Post.callbacks.push
name: 'Upvotes'
@ -26,6 +26,8 @@ Upvotes =
@nodes.vote = a
$.on a, 'click', Upvotes.vote
return unless g.VIEW is 'thread'
Upvotes.count[@fullID] = 0
quotes = {}