Drop domain check for archive links.
This commit is contained in:
parent
adf1d4716b
commit
cc69f4a3da
@ -18,8 +18,7 @@ Quotify =
|
|||||||
return
|
return
|
||||||
|
|
||||||
parseArchiveLink: (link) ->
|
parseArchiveLink: (link) ->
|
||||||
return unless Redirect.archives.some (o) -> link.host is o.domain
|
return unless (m = link.pathname.match /^\/([^/]+)\/thread\/S?(\d+)\/?$/)
|
||||||
return unless (m = link.pathname.match /^\/([^/]+)\/thread\/S?(\d+)\/?/)
|
|
||||||
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