added more legacy api endpoints
This commit is contained in:
@@ -97,4 +97,7 @@ class PostVersion < ActiveRecord::Base
|
||||
PostVersion.where("post_id = ? and id < ?", post_id, id).order("id desc").first
|
||||
end
|
||||
|
||||
def truncated_source
|
||||
source.gsub(/^http:\/\//, "").sub(/\/.+/, "")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user