#2213: limited support for diarypro
doesn't support the following: * those with customized subdirectories * those that replaced the default diary.cgi with other page * those that moved to other domains * deleted or reset entry numbers * domains that switched to other blog service provider
This commit is contained in:
@@ -361,6 +361,11 @@ class Post < ActiveRecord::Base
|
|||||||
base_62 = imgly_id.to_i.encode62
|
base_62 = imgly_id.to_i.encode62
|
||||||
"http://img.ly/#{base_62}"
|
"http://img.ly/#{base_62}"
|
||||||
|
|
||||||
|
when %r{(\Ahttp://.+)/diarypro/d(?:ata/upfile/|iary\.cgi\?mode=image&upfile=)(\d+)}i
|
||||||
|
base_url = $1
|
||||||
|
entry_no = $2
|
||||||
|
"#{base_url}/diarypro/diary.cgi?no=#{entry_no}"
|
||||||
|
|
||||||
else
|
else
|
||||||
source
|
source
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user