#1866: hentai foundry source link redirects

This commit is contained in:
Toks
2013-12-08 00:13:57 -05:00
parent 95595bda06
commit 2b442253ad
2 changed files with 8 additions and 0 deletions

View File

@@ -310,6 +310,9 @@ class Post < ActiveRecord::Base
when %r{\Ahttp://p\.twpl\.jp/show/orig/([a-z0-9]+)}i
"http://p.twipple.jp/#{$1}"
when %r{\Ahttp://pictures\.hentai-foundry\.com//a/([^/]+)/(\d+)\.}i
"http://www.hentai-foundry.com/pictures/user/#{$1}/#{$2}"
else
source
end