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

This commit is contained in:
Mayhem 2013-05-02 01:13:02 +02:00
parent 2a11b1633d
commit d1c7cf5826
2 changed files with 10 additions and 3 deletions

View File

@ -3,6 +3,7 @@
- Always use a specific persona. - Always use a specific persona.
- Per-board configuration. - Per-board configuration.
- Access it in the `QR` tab of the Settings window. - Access it in the `QR` tab of the Settings window.
- Updated archive redirection for /h/, /v/ and /vg/.
### 3.2.3 - *2013-04-30* ### 3.2.3 - *2013-04-30*

View File

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