archive features should be disableable
This commit is contained in:
parent
3d32a205d9
commit
4d40b30c28
@ -131,6 +131,7 @@ Get =
|
|||||||
Main.callbackNodes Post, [post]
|
Main.callbackNodes Post, [post]
|
||||||
Get.insert post, root, context
|
Get.insert post, root, context
|
||||||
archivedPost: (boardID, postID, root, context) ->
|
archivedPost: (boardID, postID, root, context) ->
|
||||||
|
return false unless Conf['Resurrect Quotes']
|
||||||
return false unless url = Redirect.to 'post', {boardID, postID}
|
return false unless url = Redirect.to 'post', {boardID, postID}
|
||||||
if /^https:\/\//.test(URL) or location.protocol is 'http:'
|
if /^https:\/\//.test(URL) or location.protocol is 'http:'
|
||||||
$.cache url,
|
$.cache url,
|
||||||
|
|||||||
@ -12,7 +12,7 @@ ImageCommon =
|
|||||||
URL = Redirect.to 'file',
|
URL = Redirect.to 'file',
|
||||||
boardID: post.board.ID
|
boardID: post.board.ID
|
||||||
filename: src[src.length - 1]
|
filename: src[src.length - 1]
|
||||||
unless URL and Redirect.securityCheck URL
|
unless Conf['404 Redirect'] and URL and Redirect.securityCheck URL
|
||||||
URL = null
|
URL = null
|
||||||
|
|
||||||
return cb URL if (post.isDead or post.file.isDead) and file.src.split('/')[2] is 'i.4cdn.org'
|
return cb URL if (post.isDead or post.file.isDead) and file.src.split('/')[2] is 'i.4cdn.org'
|
||||||
|
|||||||
@ -157,7 +157,7 @@ ThreadWatcher =
|
|||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
$.on x, 'click', ThreadWatcher.cb.rm
|
$.on x, 'click', ThreadWatcher.cb.rm
|
||||||
|
|
||||||
if data.isDead
|
if Conf['404 Redirect'] and data.isDead
|
||||||
href = Redirect.to 'thread', {boardID, threadID}
|
href = Redirect.to 'thread', {boardID, threadID}
|
||||||
link = $.el 'a',
|
link = $.el 'a',
|
||||||
href: href or "/#{boardID}/thread/#{threadID}"
|
href: href or "/#{boardID}/thread/#{threadID}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user