Use the correct protocol when using foolz' API.

This commit is contained in:
Nicolas Stepien 2012-06-14 17:22:37 +02:00
parent 5fb3f244f5
commit b1c639252d
2 changed files with 2 additions and 2 deletions

View File

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

View File

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