discourse/app/serializers/web_hook_topic_view_serializer.rb
2018-04-10 16:38:48 +05:30

20 lines
338 B
Ruby

require_dependency 'pinned_check'
class WebHookTopicViewSerializer < TopicViewSerializer
%i{
post_stream
timeline_lookup
pm_with_non_human_user
draft
draft_key
draft_sequence
message_bus_last_id
suggested_topics
}.each do |attr|
define_method("include_#{attr}?") do
false
end
end
end