tolerate new image links

This commit is contained in:
ccd0 2014-04-12 22:14:35 -07:00
parent c0ea6f8e95
commit 9acdd4bd85
3 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ Gallery =
if src[2] is 'i.4cdn.org'
URL = Redirect.to 'file',
boardID: src[3]
filename: src[5]
filename: src[src.length - 1]
if URL
thumb.href = URL
return unless Gallery.nodes.current is img

View File

@ -206,7 +206,7 @@ ImageExpand =
if src[2] is 'i.4cdn.org'
URL = Redirect.to 'file',
boardID: src[3]
filename: src[5]
filename: src[src.length - 1]
if URL
setTimeout ImageExpand.expand, 10000, post, URL
return

View File

@ -52,7 +52,7 @@ ImageHover =
if src[2] is 'i.4cdn.org'
URL = Redirect.to 'file',
boardID: src[3]
filename: src[5].replace /\?.+$/, ''
filename: src[src.length - 1].replace /\?.+$/, ''
if URL
@src = URL
return