mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 10:05:48 +08:00
13 lines
229 B
Ruby
13 lines
229 B
Ruby
class ReviewableFlaggedPostSerializer < ReviewableSerializer
|
|
target_attributes :cooked, :raw, :reply_count
|
|
attributes :blank_post
|
|
|
|
def blank_post
|
|
true
|
|
end
|
|
|
|
def include_blank_post?
|
|
object.target.blank?
|
|
end
|
|
end
|