Use the correct protocol when using foolz' API.
This commit is contained in:
parent
5fb3f244f5
commit
b1c639252d
@ -3933,7 +3933,7 @@
|
||||
case 'u':
|
||||
case 'v':
|
||||
case 'vg':
|
||||
return "http://archive.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json";
|
||||
return "//archive.foolz.us/api/chan/post/board/" + board + "/num/" + postID + "/format/json";
|
||||
}
|
||||
},
|
||||
thread: function(board, id, mode) {
|
||||
|
||||
@ -3101,7 +3101,7 @@ Redirect =
|
||||
post: (board, postID) ->
|
||||
switch board
|
||||
when 'a', 'co', 'jp', 'm', 'tg', 'tv', 'u', 'v', 'vg'
|
||||
"http://archive.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json"
|
||||
"//archive.foolz.us/api/chan/post/board/#{board}/num/#{postID}/format/json"
|
||||
thread: (board=g.BOARD, id=g.THREAD_ID, mode='thread') ->
|
||||
return unless Conf['404 Redirect'] or mode is 'post'
|
||||
switch board
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user