mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:23:37 +08:00
14 lines
250 B
Ruby
14 lines
250 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TopicPendingPostSerializer < ApplicationSerializer
|
|
attributes :id, :raw, :created_at
|
|
|
|
def raw
|
|
object.payload["raw"]
|
|
end
|
|
|
|
def include_raw?
|
|
object.payload && object.payload["raw"].present?
|
|
end
|
|
end
|