This commit is contained in:
Nicolas Stepien 2013-02-06 20:26:25 +01:00
parent 1f94b35df4
commit b587719af8
3 changed files with 8 additions and 2 deletions

View File

@ -4782,6 +4782,7 @@
return "//archive.foolz.us/" + board + "/full_image/" + filename;
case 'u':
return "//nsfw.foolz.us/" + board + "/full_image/" + filename;
case 'int':
case 'po':
return "http://archive.thedarkcave.org/" + board + "/full_image/" + filename;
case 'ck':
@ -4820,6 +4821,8 @@
case 'u':
case 'kuku':
return "//nsfw.foolz.us/_/api/chan/post/?board=" + board + "&num=" + postID;
case 'c':
case 'int':
case 'po':
return "http://archive.thedarkcave.org/_/api/chan/post/?board=" + board + "&num=" + postID;
}
@ -4850,6 +4853,7 @@
case 'kuku':
url = Redirect.path('//nsfw.foolz.us', 'foolfuuka', data);
break;
case 'int':
case 'po':
url = Redirect.path('http://archive.thedarkcave.org', 'foolfuuka', data);
break;

View File

@ -1,4 +1,6 @@
master
- Mayhem
Add /int/ archive redirection for threads, and post resurrection.
2.37.6
- Mayhem

View File

@ -3944,7 +3944,7 @@ 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'
when 'c', 'int', 'po'
"http://archive.thedarkcave.org/_/api/chan/post/?board=#{board}&num=#{postID}"
to: (data) ->
unless data.isSearch
@ -3955,7 +3955,7 @@ Redirect =
url = Redirect.path '//archive.foolz.us', 'foolfuuka', data
when 'u', 'kuku'
url = Redirect.path '//nsfw.foolz.us', 'foolfuuka', data
when 'po'
when 'int', 'po'
url = Redirect.path 'http://archive.thedarkcave.org', 'foolfuuka', data
when 'ck', 'lit'
url = Redirect.path '//fuuka.warosu.org', 'fuuka', data