add minus.com source redirection

always points to the landing page regardless of the url if thumbnail or full size
This commit is contained in:
ghostrigger
2014-07-13 20:46:14 +08:00
parent ab500084e6
commit c2ef708ce9

View File

@@ -377,6 +377,9 @@ class Post < ActiveRecord::Base
base_url = $1
entry_no = $2
"#{base_url}/diarypro/diary.cgi?no=#{entry_no}"
when %r{\Ahttp://i(?:\d)?\.minus\.com/(?:i|j)([^\.]{12,})}i
"http://minus.com/i/#{$1}"
else
source