mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 15:08:56 +08:00
19 lines
317 B
Ruby
19 lines
317 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
|
|
}.each do |attr|
|
|
define_method("include_#{attr}?") do
|
|
false
|
|
end
|
|
end
|
|
end
|