Fix quotelinks on /pol/.
This commit is contained in:
parent
511dbf0ffc
commit
ae3e7eaef3
@ -1,6 +1,6 @@
|
||||
Quotify =
|
||||
init: ->
|
||||
return if g.VIEW is 'catalog' or !Conf['Resurrect Quotes']
|
||||
return if g.VIEW is 'catalog' or !Conf['Resurrect Quotes'] and g.BOARD.ID isnt 'pol'
|
||||
|
||||
if Conf['Comment Expansion']
|
||||
ExpandComment.callbacks.push @node
|
||||
@ -58,7 +58,16 @@ Quotify =
|
||||
|
||||
$.extend a.dataset, {boardID, threadID: post.thread.ID, postID}
|
||||
|
||||
else
|
||||
else if @board.ID is boardID is 'pol' and postID.length is 9 and postID[-2] is postID[-1]
|
||||
# XXX Misquotes due to fake doubles on /pol/. Assume they are all intra-thread.
|
||||
postID = postID[...-1]
|
||||
quoteID = "#{boardID}.#{postID}"
|
||||
a = $.el 'a',
|
||||
href: Build.postURL boardID, @thread.ID, postID
|
||||
className: 'quotelink'
|
||||
textContent: quote
|
||||
|
||||
else if Conf['Resurrect Quotes']
|
||||
redirect = Redirect.to 'thread', {boardID, threadID: 0, postID}
|
||||
fetchable = Redirect.to 'post', {boardID, postID}
|
||||
if redirect or fetchable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user