fixes #673
This commit is contained in:
@@ -835,7 +835,10 @@ class Post < ActiveRecord::Base
|
||||
options ||= {}
|
||||
options[:except] ||= []
|
||||
options[:except] += hidden_attributes
|
||||
super(options)
|
||||
hash = super(options)
|
||||
hash["uploader_name"] = uploader_name
|
||||
hash["has_large"] = has_large
|
||||
hash
|
||||
end
|
||||
|
||||
def to_xml(options = {}, &block)
|
||||
@@ -847,13 +850,6 @@ class Post < ActiveRecord::Base
|
||||
super(options, &block)
|
||||
end
|
||||
|
||||
def serializable_hash(options = {})
|
||||
hash = super(options)
|
||||
hash["uploader_name"] = uploader_name
|
||||
hash["has_large"] = has_large
|
||||
hash
|
||||
end
|
||||
|
||||
def to_legacy_json
|
||||
return {
|
||||
"has_comments" => last_commented_at.present?,
|
||||
|
||||
Reference in New Issue
Block a user