Add /vg/ archive redirection.

This commit is contained in:
Nicolas Stepien 2012-02-18 22:51:38 +01:00
parent 8d297e8c53
commit 1fc62d929d
3 changed files with 6 additions and 2 deletions

View File

@ -3243,6 +3243,7 @@
case 'tg':
case 'tv':
case 'u':
case 'vg':
return "http://archive.foolz.us/" + href[3] + "/full_image/" + href[5];
}
},
@ -3256,6 +3257,7 @@
case 'tv':
case 'u':
case 'v':
case 'vg':
return "http://archive.foolz.us/" + g.BOARD + "/thread/" + g.THREAD_ID + "/";
case 'lit':
return "http://fuuka.warosu.org/" + g.BOARD + "/thread/" + g.THREAD_ID;

View File

@ -1,4 +1,6 @@
master
- Mayhem
Add /vg/ archive redirection.
2.26.3
- Mayhem

View File

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