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:
parent
9a67285c76
commit
2c2dfa34b9
@ -141,7 +141,7 @@ class DataBoard
|
|||||||
return that.ajaxCleanParse(boardID, @response) unless archiveList
|
return that.ajaxCleanParse(boardID, @response) unless archiveList
|
||||||
response1 = @response
|
response1 = @response
|
||||||
$.cache archiveList, ->
|
$.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)
|
that.ajaxCleanParse(boardID, response1, @response)
|
||||||
|
|
||||||
ajaxCleanParse: (boardID, response1, response2) ->
|
ajaxCleanParse: (boardID, response1, response2) ->
|
||||||
|
|||||||
@ -54,6 +54,9 @@ SW.tinyboard =
|
|||||||
threadsListJSON: ({siteID, boardID}) ->
|
threadsListJSON: ({siteID, boardID}) ->
|
||||||
root = Conf['siteProperties'][siteID]?.root
|
root = Conf['siteProperties'][siteID]?.root
|
||||||
if root then "#{root}#{boardID}/threads.json" else ''
|
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}) ->
|
catalogJSON: ({siteID, boardID}) ->
|
||||||
root = Conf['siteProperties'][siteID]?.root
|
root = Conf['siteProperties'][siteID]?.root
|
||||||
if root then "#{root}#{boardID}/catalog.json" else ''
|
if root then "#{root}#{boardID}/catalog.json" else ''
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
SW.yotsuba =
|
SW.yotsuba =
|
||||||
isOPContainerThread: false
|
isOPContainerThread: false
|
||||||
hasIPCount: true
|
hasIPCount: true
|
||||||
|
archivedBoardsKnown: true
|
||||||
|
|
||||||
urls:
|
urls:
|
||||||
thread: ({boardID, threadID}) -> "#{location.protocol}//#{BoardConfig.domain(boardID)}/#{boardID}/thread/#{threadID}"
|
thread: ({boardID, threadID}) -> "#{location.protocol}//#{BoardConfig.domain(boardID)}/#{boardID}/thread/#{threadID}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user