indent
This commit is contained in:
@@ -331,20 +331,20 @@ class Post < ActiveRecord::Base
|
||||
subdomain = $1
|
||||
filename = $2
|
||||
"http://#{subdomain}.wikia.com/wiki/File:#{filename}"
|
||||
|
||||
|
||||
when %r{\Ahttp://(?:(?:\d{1,3}\.){3}\d{1,3}):(?:\d{1,5})/h/([a-f0-9]{40})-(?:\d+-){3}(?:png|gif|(?:jpe?g?))/keystamp=\d+-[a-f0-9]{10}/([^/]+)}i
|
||||
sha1hash = $1
|
||||
filename = $2
|
||||
"http://g.e-hentai.org/?f_shash=#{sha1hash}&fs_from=#{filename}"
|
||||
|
||||
"http://g.e-hentai.org/?f_shash=#{sha1hash}&fs_from=#{filename}"
|
||||
|
||||
when %r{\Ahttp://e-shuushuu.net/images/\d{4}-(?:\d{2}-){2}(\d+)}i
|
||||
"http://e-shuushuu.net/image/#{$1}"
|
||||
|
||||
"http://e-shuushuu.net/image/#{$1}"
|
||||
|
||||
when %r{\Ahttp://jpg\.nijigen-daiaru\.com/(\d+)}i
|
||||
"http://nijigen-daiaru.com/book.php?idb=#{$1}"
|
||||
|
||||
"http://nijigen-daiaru.com/book.php?idb=#{$1}"
|
||||
|
||||
when %r{\Ahttp://rule34-(?:data-\d{3}|images)\.paheal\.net/(?:_images/)?([a-f0-9]{32})}i
|
||||
"http://rule34.paheal.net/post/list/md5:#{$1}/1"
|
||||
"http://rule34.paheal.net/post/list/md5:#{$1}/1"
|
||||
|
||||
else
|
||||
source
|
||||
|
||||
Reference in New Issue
Block a user