Add /co/ archive redirection.

This commit is contained in:
Nicolas Stepien 2012-05-26 20:33:33 +02:00
parent 7c51fc5852
commit 623b8ef0b3
2 changed files with 4 additions and 2 deletions

View File

@ -3566,6 +3566,7 @@
} }
switch (href[3]) { switch (href[3]) {
case 'a': case 'a':
case 'co':
case 'jp': case 'jp':
case 'm': case 'm':
case 'tg': case 'tg':
@ -3589,6 +3590,7 @@
} }
switch (board) { switch (board) {
case 'a': case 'a':
case 'co':
case 'jp': case 'jp':
case 'm': case 'm':
case 'tg': case 'tg':

View File

@ -2735,12 +2735,12 @@ Redirect =
# Do not use g.BOARD, the image url can originate from a cross-quote. # Do not use g.BOARD, the image url can originate from a cross-quote.
return unless Conf['404 Redirect'] return unless Conf['404 Redirect']
switch href[3] switch href[3]
when 'a', 'jp', 'm', 'tg', 'u', 'vg' when 'a', 'co', 'jp', 'm', 'tg', 'u', 'vg'
"http://archive.foolz.us/#{href[3]}/full_image/#{href[5]}" "http://archive.foolz.us/#{href[3]}/full_image/#{href[5]}"
thread: (board=g.BOARD, id=g.THREAD_ID, mode='thread') -> thread: (board=g.BOARD, id=g.THREAD_ID, mode='thread') ->
return unless Conf['404 Redirect'] or mode is 'post' return unless Conf['404 Redirect'] or mode is 'post'
switch board switch board
when 'a', 'jp', 'm', 'tg', 'tv', 'u', 'v', 'vg' when 'a', 'co', 'jp', 'm', 'tg', 'tv', 'u', 'v', 'vg'
"http://archive.foolz.us/#{board}/#{mode}/#{id}/" "http://archive.foolz.us/#{board}/#{mode}/#{id}/"
when 'lit' when 'lit'
"http://fuuka.warosu.org/#{board}/#{mode}/#{id}" "http://fuuka.warosu.org/#{board}/#{mode}/#{id}"