#1866: support nijigen-daiaru source redirection

* brings the user to the front/1st page of the doujin similar when viewing manga in pixiv
This commit is contained in:
ghostrigger
2014-06-24 17:07:12 +08:00
parent ff86f3c298
commit 2049ffc6aa

View File

@@ -339,6 +339,9 @@ class Post < ActiveRecord::Base
when %r{\Ahttp://e-shuushuu.net/images/\d{4}-(?:\d{2}-){2}(\d+)}i
"http://e-shuushuu.net/image/#{$1}"
when %r{\Ahttp://jpg\.nijigen-daiaru\.com/(\d+)}i
"http://nijigen-daiaru.com/book.php?idb=#{$1}"
else
source