Don't treat internal links as archive links.
This commit is contained in:
parent
64d0bd0afd
commit
403b8dcfac
@ -21,6 +21,7 @@ Quotify =
|
|||||||
|
|
||||||
parseArchivelink: (link) ->
|
parseArchivelink: (link) ->
|
||||||
return unless (m = link.pathname.match /^\/([^/]+)\/thread\/S?(\d+)\/?$/)
|
return unless (m = link.pathname.match /^\/([^/]+)\/thread\/S?(\d+)\/?$/)
|
||||||
|
return if link.hostname is 'boards.4chan.org'
|
||||||
boardID = m[1]
|
boardID = m[1]
|
||||||
threadID = m[2]
|
threadID = m[2]
|
||||||
postID = link.hash.match(/^#p?(\d+)$|$/)[1] or threadID
|
postID = link.hash.match(/^#p?(\d+)$|$/)[1] or threadID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user