Add archive redirection for /d/, /v/ and /vg/.

Close #1075.
This commit is contained in:
Nicolas Stepien 2013-04-30 03:46:38 +02:00
parent ecf8632331
commit 01ed414486
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,4 @@
- Update archive redirection for /c/, /d/, /v/, /vg/, /w/ and /wg/.
- Minor fixes.
### 3.2.2 - *2013-04-27*

View File

@ -12,6 +12,10 @@ Redirect =
"http://archive.4plebs.org/#{boardID}/full_image/#{filename}"
when 'c', 'w', 'wg'
"//archive.nyafuu.org/#{boardID}/full_image/#{filename}"
when 'vg'
"http://archive.nihil-ad-rem.net/#{boardID}/full_image/#{filename}"
when 'd'
"//loveisover.me/#{boardID}/full_image/#{filename}"
when 'ck', 'fa', 'lit', 's4s'
"//fuuka.warosu.org/#{boardID}/full_image/#{filename}"
when 'cgl', 'g', 'mu'
@ -32,6 +36,10 @@ Redirect =
"http://archive.4plebs.org/_/api/chan/post/?board=#{boardID}&num=#{postID}"
when 'c', 'w', 'wg'
"//archive.nyafuu.org/_/api/chan/post/?board=#{boardID}&num=#{postID}"
when 'v', 'vg'
"http://archive.nihil-ad-rem.net/_/api/chan/post/?board=#{boardID}&num=#{postID}"
when 'd'
"//loveisover.me/_/api/chan/post/?board=#{boardID}&num=#{postID}"
# for fuuka-based archives:
# https://github.com/eksopl/fuuka/issues/27
to: (data) ->
@ -47,6 +55,10 @@ Redirect =
Redirect.path 'http://archive.4plebs.org', 'foolfuuka', data
when 'c', 'w', 'wg'
Redirect.path '//archive.nyafuu.org', 'foolfuuka', data
when 'v', 'vg'
Redirect.path 'http://archive.nihil-ad-rem.net', 'foolfuuka', data
when 'd'
Redirect.path '//loveisover.me', 'foolfuuka', data
when 'ck', 'fa', 'lit', 's4s'
Redirect.path '//fuuka.warosu.org', 'fuuka', data
when 'diy', 'g', 'sci'