Add /po/ archive redirection.

This commit is contained in:
Nicolas Stepien 2013-01-10 10:23:07 +01:00
parent b1dce1ec2f
commit 6600d960b5
3 changed files with 15 additions and 0 deletions

View File

@ -4782,6 +4782,8 @@
return "//archive.foolz.us/" + board + "/full_image/" + filename;
case 'u':
return "//nsfw.foolz.us/" + board + "/full_image/" + filename;
case 'po':
return "http://archive.thedarkcave.org/" + board + "/full_image/" + filename;
case 'ck':
case 'lit':
return "//fuuka.warosu.org/" + board + "/full_image/" + filename;
@ -4818,6 +4820,8 @@
case 'u':
case 'kuku':
return "//nsfw.foolz.us/_/api/chan/post/?board=" + board + "&num=" + postID;
case 'po':
return "http://archive.thedarkcave.org/_/api/chan/post/?board=" + board + "&num=" + postID;
}
},
to: function(data) {
@ -4846,6 +4850,9 @@
case 'kuku':
url = Redirect.path('//nsfw.foolz.us', 'foolfuuka', data);
break;
case 'po':
url = Redirect.path('http://archive.thedarkcave.org', 'foolfuuka', data);
break;
case 'ck':
case 'lit':
url = Redirect.path('//fuuka.warosu.org', 'fuuka', data);

View File

@ -1,4 +1,6 @@
master
- Mayhem
Add /po/ archive redirection for threads, images and post resurection.
2.37.3
- Mayhem

View File

@ -3928,6 +3928,8 @@ Redirect =
"//archive.foolz.us/#{board}/full_image/#{filename}"
when 'u'
"//nsfw.foolz.us/#{board}/full_image/#{filename}"
when 'po'
"http://archive.thedarkcave.org/#{board}/full_image/#{filename}"
when 'ck', 'lit'
"//fuuka.warosu.org/#{board}/full_image/#{filename}"
when 'cgl', 'g', 'mu', 'w'
@ -3942,6 +3944,8 @@ Redirect =
"//archive.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}"
when 'u', 'kuku'
"//nsfw.foolz.us/_/api/chan/post/?board=#{board}&num=#{postID}"
when 'po'
"http://archive.thedarkcave.org/_/api/chan/post/?board=#{board}&num=#{postID}"
to: (data) ->
unless data.isSearch
{threadID} = data
@ -3951,6 +3955,8 @@ Redirect =
url = Redirect.path '//archive.foolz.us', 'foolfuuka', data
when 'u', 'kuku'
url = Redirect.path '//nsfw.foolz.us', 'foolfuuka', data
when 'po'
url = Redirect.path 'http://archive.thedarkcave.org', 'foolfuuka', data
when 'ck', 'lit'
url = Redirect.path '//fuuka.warosu.org', 'fuuka', data
when 'diy', 'sci'