Add /vg/ archive redirection.
This commit is contained in:
parent
8d297e8c53
commit
1fc62d929d
@ -3243,6 +3243,7 @@
|
|||||||
case 'tg':
|
case 'tg':
|
||||||
case 'tv':
|
case 'tv':
|
||||||
case 'u':
|
case 'u':
|
||||||
|
case 'vg':
|
||||||
return "http://archive.foolz.us/" + href[3] + "/full_image/" + href[5];
|
return "http://archive.foolz.us/" + href[3] + "/full_image/" + href[5];
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -3256,6 +3257,7 @@
|
|||||||
case 'tv':
|
case 'tv':
|
||||||
case 'u':
|
case 'u':
|
||||||
case 'v':
|
case 'v':
|
||||||
|
case 'vg':
|
||||||
return "http://archive.foolz.us/" + g.BOARD + "/thread/" + g.THREAD_ID + "/";
|
return "http://archive.foolz.us/" + g.BOARD + "/thread/" + g.THREAD_ID + "/";
|
||||||
case 'lit':
|
case 'lit':
|
||||||
return "http://fuuka.warosu.org/" + g.BOARD + "/thread/" + g.THREAD_ID;
|
return "http://fuuka.warosu.org/" + g.BOARD + "/thread/" + g.THREAD_ID;
|
||||||
|
|||||||
@ -1,4 +1,6 @@
|
|||||||
master
|
master
|
||||||
|
- Mayhem
|
||||||
|
Add /vg/ archive redirection.
|
||||||
|
|
||||||
2.26.3
|
2.26.3
|
||||||
- Mayhem
|
- Mayhem
|
||||||
|
|||||||
@ -2580,12 +2580,12 @@ redirect =
|
|||||||
# 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.
|
||||||
return unless conf['404 Redirect']
|
return unless conf['404 Redirect']
|
||||||
switch href[3]
|
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]}"
|
"http://archive.foolz.us/#{href[3]}/full_image/#{href[5]}"
|
||||||
thread: ->
|
thread: ->
|
||||||
return unless conf['404 Redirect']
|
return unless conf['404 Redirect']
|
||||||
switch g.BOARD
|
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}/"
|
"http://archive.foolz.us/#{g.BOARD}/thread/#{g.THREAD_ID}/"
|
||||||
when 'lit'
|
when 'lit'
|
||||||
"http://fuuka.warosu.org/#{g.BOARD}/thread/#{g.THREAD_ID}"
|
"http://fuuka.warosu.org/#{g.BOARD}/thread/#{g.THREAD_ID}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user