mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 00:56:19 +08:00
18 lines
254 B
Ruby
18 lines
254 B
Ruby
class WebHookPostSerializer < PostSerializer
|
|
def include_topic_title?
|
|
true
|
|
end
|
|
|
|
%i{
|
|
can_view
|
|
can_edit
|
|
can_delete
|
|
can_recover
|
|
can_wiki
|
|
}.each do |attr|
|
|
define_method("include_#{attr}?") do
|
|
false
|
|
end
|
|
end
|
|
end
|