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

View File

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

View File

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