diff --git a/src/classes/DataBoard.coffee b/src/classes/DataBoard.coffee index 2e76d1413..3cecd069c 100644 --- a/src/classes/DataBoard.coffee +++ b/src/classes/DataBoard.coffee @@ -141,7 +141,7 @@ class DataBoard return that.ajaxCleanParse(boardID, @response) unless archiveList response1 = @response $.cache archiveList, -> - return unless @status is 200 + return unless @status is 200 or (!g.SITE.archivedBoardsKnown and @status is 404) that.ajaxCleanParse(boardID, response1, @response) ajaxCleanParse: (boardID, response1, response2) -> diff --git a/src/site/SW.tinyboard.coffee b/src/site/SW.tinyboard.coffee index 506295992..f2e92a60b 100644 --- a/src/site/SW.tinyboard.coffee +++ b/src/site/SW.tinyboard.coffee @@ -54,6 +54,9 @@ SW.tinyboard = threadsListJSON: ({siteID, boardID}) -> root = Conf['siteProperties'][siteID]?.root if root then "#{root}#{boardID}/threads.json" else '' + archiveListJSON: ({siteID, boardID}) -> + root = Conf['siteProperties'][siteID]?.root + if root then "#{root}#{boardID}/archive/archive.json" else '' catalogJSON: ({siteID, boardID}) -> root = Conf['siteProperties'][siteID]?.root if root then "#{root}#{boardID}/catalog.json" else '' diff --git a/src/site/SW.yotsuba.coffee b/src/site/SW.yotsuba.coffee index c357e0b29..a6939b4c1 100644 --- a/src/site/SW.yotsuba.coffee +++ b/src/site/SW.yotsuba.coffee @@ -1,6 +1,7 @@ SW.yotsuba = isOPContainerThread: false hasIPCount: true + archivedBoardsKnown: true urls: thread: ({boardID, threadID}) -> "#{location.protocol}//#{BoardConfig.domain(boardID)}/#{boardID}/thread/#{threadID}"