Redirect dead images to either full size archived images or at least their archived post+thumbnail.
This commit is contained in:
parent
e0d73a64a7
commit
774edad77c
@ -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;
|
||||
|
||||
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user