discourse/app/serializers/topic_pending_post_serializer.rb
2023-01-09 14:14:59 +00:00

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