Revert "Fix quotelinks on /pol/."
This reverts commit ae3e7eaef315e4beda88ef53bbb273c2cbd479be. Conflicts: src/Quotelinks/Quotify.coffee
This commit is contained in:
parent
3b031ee09e
commit
782fe3c690
@ -1,6 +1,6 @@
|
|||||||
Quotify =
|
Quotify =
|
||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW not in ['index', 'thread'] or !Conf['Resurrect Quotes'] and g.BOARD.ID isnt 'pol'
|
return if g.VIEW not in ['index', 'thread'] or !Conf['Resurrect Quotes']
|
||||||
|
|
||||||
if Conf['Comment Expansion']
|
if Conf['Comment Expansion']
|
||||||
ExpandComment.callbacks.push @node
|
ExpandComment.callbacks.push @node
|
||||||
@ -58,16 +58,7 @@ Quotify =
|
|||||||
|
|
||||||
$.extend a.dataset, {boardID, threadID: post.thread.ID, postID}
|
$.extend a.dataset, {boardID, threadID: post.thread.ID, postID}
|
||||||
|
|
||||||
else if @board.ID is boardID is 'pol' and postID.length is 9 and postID[-2] is postID[-1]
|
else
|
||||||
# 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}
|
redirect = Redirect.to 'thread', {boardID, threadID: 0, postID}
|
||||||
fetchable = Redirect.to 'post', {boardID, postID}
|
fetchable = Redirect.to 'post', {boardID, postID}
|
||||||
if redirect or fetchable
|
if redirect or fetchable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user