Add /c/ archive redirection.

This commit is contained in:
Nicolas Stepien 2012-12-10 18:25:39 +01:00
parent 272add179f
commit b4f68be732
3 changed files with 20 additions and 10 deletions

View File

@ -4799,6 +4799,8 @@
case 'toy':
case 'x':
return "http://archive.heinessen.com/" + board + "/full_image/" + filename;
case 'c':
return "//archive.nyafuu.org/" + board + "/full_image/" + filename;
}
},
post: function(board, postID) {
@ -4846,21 +4848,21 @@
break;
case 'u':
case 'kuku':
url = Redirect.path("//nsfw.foolz.us", 'foolfuuka', data);
url = Redirect.path('//nsfw.foolz.us', 'foolfuuka', data);
break;
case 'ck':
case 'lit':
url = Redirect.path("//fuuka.warosu.org", 'fuuka', data);
url = Redirect.path('//fuuka.warosu.org', 'fuuka', data);
break;
case 'diy':
case 'sci':
url = Redirect.path("//archive.installgentoo.net", 'fuuka', data);
url = Redirect.path('//archive.installgentoo.net', 'fuuka', data);
break;
case 'cgl':
case 'g':
case 'mu':
case 'w':
url = Redirect.path("//rbt.asia", 'fuuka', data);
url = Redirect.path('//rbt.asia', 'fuuka', data);
break;
case 'an':
case 'fit':
@ -4869,7 +4871,10 @@
case 'r9k':
case 'toy':
case 'x':
url = Redirect.path("http://archive.heinessen.com", 'fuuka', data);
url = Redirect.path('http://archive.heinessen.com', 'fuuka', data);
break;
case 'c':
url = Redirect.path('//archive.nyafuu.org', 'fuuka', data);
break;
default:
if (threadID) {

View File

@ -4,6 +4,7 @@ master
- Mayhem
Added catalog support:
Sync thread hiding between index and catalog.
Add /c/ archived thread and image redirection.
2.36.3
- Mayhem

View File

@ -3945,6 +3945,8 @@ Redirect =
"//rbt.asia/#{board}/full_image/#{filename}"
when 'an', 'k', 'toy', 'x'
"http://archive.heinessen.com/#{board}/full_image/#{filename}"
when 'c'
"//archive.nyafuu.org/#{board}/full_image/#{filename}"
post: (board, postID) ->
switch board
when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg', 'dev', 'foolz'
@ -3959,15 +3961,17 @@ Redirect =
when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg', 'dev', 'foolz'
url = Redirect.path '//archive.foolz.us', 'foolfuuka', data
when 'u', 'kuku'
url = Redirect.path "//nsfw.foolz.us", 'foolfuuka', data
url = Redirect.path '//nsfw.foolz.us', 'foolfuuka', data
when 'ck', 'lit'
url = Redirect.path "//fuuka.warosu.org", 'fuuka', data
url = Redirect.path '//fuuka.warosu.org', 'fuuka', data
when 'diy', 'sci'
url = Redirect.path "//archive.installgentoo.net", 'fuuka', data
url = Redirect.path '//archive.installgentoo.net', 'fuuka', data
when 'cgl', 'g', 'mu', 'w'
url = Redirect.path "//rbt.asia", 'fuuka', data
url = Redirect.path '//rbt.asia', 'fuuka', data
when 'an', 'fit', 'k', 'mlp', 'r9k', 'toy', 'x'
url = Redirect.path "http://archive.heinessen.com", 'fuuka', data
url = Redirect.path 'http://archive.heinessen.com', 'fuuka', data
when 'c'
url = Redirect.path '//archive.nyafuu.org', 'fuuka', data
else
if threadID
url = "//boards.4chan.org/#{board}/"