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) {
|
image: function(board, filename) {
|
||||||
switch (board) {
|
switch (board) {
|
||||||
case 'a':
|
case 'a':
|
||||||
|
case 'co':
|
||||||
case 'jp':
|
case 'jp':
|
||||||
case 'm':
|
case 'm':
|
||||||
case 'q':
|
case 'q':
|
||||||
case 'sp':
|
case 'sp':
|
||||||
case 'tg':
|
case 'tg':
|
||||||
|
case 'tv':
|
||||||
|
case 'v':
|
||||||
case 'vg':
|
case 'vg':
|
||||||
case 'wsg':
|
case 'wsg':
|
||||||
return "//archive.foolz.us/" + board + "/full_image/" + filename;
|
return "//archive.foolz.us/" + board + "/full_image/" + filename;
|
||||||
|
|||||||
@ -929,7 +929,7 @@ Redirect =
|
|||||||
image: (board, filename) ->
|
image: (board, filename) ->
|
||||||
# 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.
|
||||||
switch board
|
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}"
|
"//archive.foolz.us/#{board}/full_image/#{filename}"
|
||||||
when 'u'
|
when 'u'
|
||||||
"//nsfw.foolz.us/#{board}/full_image/#{filename}"
|
"//nsfw.foolz.us/#{board}/full_image/#{filename}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user