Fix switch parameter, silly me. This fixes cross-board quotifying href.
This commit is contained in:
parent
32f452f2cd
commit
f0b5c5aa27
@ -3531,7 +3531,7 @@
|
||||
if (id == null) id = g.THREAD_ID;
|
||||
if (mode == null) mode = 'thread';
|
||||
if (!(Conf['404 Redirect'] || mode === 'post')) return;
|
||||
switch (g.BOARD) {
|
||||
switch (board) {
|
||||
case 'a':
|
||||
case 'jp':
|
||||
case 'm':
|
||||
@ -3540,7 +3540,7 @@
|
||||
case 'u':
|
||||
case 'v':
|
||||
case 'vg':
|
||||
return "http://archive.foolz.us/" + board + "/thread/" + id + "/";
|
||||
return "http://archive.foolz.us/" + board + "/" + mode + "/" + id + "/";
|
||||
case 'lit':
|
||||
return "http://fuuka.warosu.org/" + board + "/" + mode + "/" + id;
|
||||
case 'diy':
|
||||
|
||||
@ -2969,9 +2969,9 @@ Redirect =
|
||||
"http://archive.foolz.us/#{href[3]}/full_image/#{href[5]}"
|
||||
thread: (board=g.BOARD, id=g.THREAD_ID, mode='thread') ->
|
||||
return unless Conf['404 Redirect'] or mode is 'post'
|
||||
switch g.BOARD
|
||||
switch board
|
||||
when 'a', 'jp', 'm', 'tg', 'tv', 'u', 'v', 'vg'
|
||||
"http://archive.foolz.us/#{board}/thread/#{id}/"
|
||||
"http://archive.foolz.us/#{board}/#{mode}/#{id}/"
|
||||
when 'lit'
|
||||
"http://fuuka.warosu.org/#{board}/#{mode}/#{id}"
|
||||
when 'diy', 'g', 'sci'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user