Add /vg/ image redirection.

This commit is contained in:
Nicolas Stepien 2012-02-23 20:13:47 +01:00
parent 2e13196563
commit 8f043ac1bb
2 changed files with 2 additions and 1 deletions

View File

@ -3337,6 +3337,7 @@
case 'm':
case 'tg':
case 'u':
case 'vg':
return "http://archive.foolz.us/" + href[3] + "/full_image/" + href[5];
}
},

View File

@ -2724,7 +2724,7 @@ 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', 'u'
when 'a', 'jp', 'm', 'tg', 'u', 'vg'
"http://archive.foolz.us/#{href[3]}/full_image/#{href[5]}"
thread: ->
return unless conf['404 Redirect']