Don't prune data for threads on kissu.moe while they're in the archive, take 2, using archive.json.

This commit is contained in:
ccd0 2019-12-13 11:27:08 -08:00
parent 9a67285c76
commit 2c2dfa34b9
3 changed files with 5 additions and 1 deletions

View File

@ -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) ->

View File

@ -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 ''

View File

@ -1,6 +1,7 @@
SW.yotsuba =
isOPContainerThread: false
hasIPCount: true
archivedBoardsKnown: true
urls:
thread: ({boardID, threadID}) -> "#{location.protocol}//#{BoardConfig.domain(boardID)}/#{boardID}/thread/#{threadID}"