Fix quotifying link hrefs in certain cases.
That's a 5 months old bug that didn't seem to affect anyone...
This commit is contained in:
parent
93c297b324
commit
6a710cbf0e
@ -41,13 +41,13 @@ Quotify =
|
|||||||
# Don't (Dead) when quotifying in an archived post,
|
# Don't (Dead) when quotifying in an archived post,
|
||||||
# and we know the post still exists.
|
# and we know the post still exists.
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
href: "/#{boardID}/#{post.thread}/res/#p#{postID}"
|
href: "/#{boardID}/res/#{post.thread}#p#{postID}"
|
||||||
className: 'quotelink'
|
className: 'quotelink'
|
||||||
textContent: quote
|
textContent: quote
|
||||||
else
|
else
|
||||||
# Replace the .deadlink span if we can redirect.
|
# Replace the .deadlink span if we can redirect.
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
href: "/#{boardID}/#{post.thread}/res/#p#{postID}"
|
href: "/#{boardID}/res/#{post.thread}#p#{postID}"
|
||||||
className: 'quotelink deadlink'
|
className: 'quotelink deadlink'
|
||||||
target: '_blank'
|
target: '_blank'
|
||||||
textContent: "#{quote}\u00A0(Dead)"
|
textContent: "#{quote}\u00A0(Dead)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user