Drop domain check for archive links.

This commit is contained in:
ccd0 2016-05-12 00:00:55 -07:00
parent adf1d4716b
commit cc69f4a3da

View File

@ -18,8 +18,7 @@ Quotify =
return
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]
threadID = m[2]
postID = link.hash.match(/^#p?(\d+)$|$/)[1] or threadID