Add /vg/ archive redirection.
This commit is contained in:
parent
8d297e8c53
commit
1fc62d929d
@ -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;
|
||||
|
||||
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user