Redirect dead images to either full size archived images or at least their archived post+thumbnail.

This commit is contained in:
Nicolas Stepien 2012-09-05 03:38:59 +02:00
parent e0d73a64a7
commit 774edad77c
2 changed files with 4 additions and 1 deletions

View File

@ -1043,11 +1043,14 @@
image: function(board, filename) {
switch (board) {
case 'a':
case 'co':
case 'jp':
case 'm':
case 'q':
case 'sp':
case 'tg':
case 'tv':
case 'v':
case 'vg':
case 'wsg':
return "//archive.foolz.us/" + board + "/full_image/" + filename;

View File

@ -929,7 +929,7 @@ Redirect =
image: (board, filename) ->
# Do not use g.BOARD, the image url can originate from a cross-quote.
switch board
when 'a', 'jp', 'm', 'q', 'sp', 'tg', 'vg', 'wsg'
when 'a', 'co', 'jp', 'm', 'q', 'sp', 'tg', 'tv', 'v', 'vg', 'wsg'
"//archive.foolz.us/#{board}/full_image/#{filename}"
when 'u'
"//nsfw.foolz.us/#{board}/full_image/#{filename}"