2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: Topic title should be included in post webhook payload.

This commit is contained in:
Guo Xiang Tan 2017-04-21 10:04:21 +08:00
parent aec73d4003
commit 8b2e3bf5f1
2 changed files with 36 additions and 12 deletions

View file

@ -1,17 +1,17 @@
class WebHookPostSerializer < PostSerializer
def include_can_edit?
false
def include_topic_title?
true
end
def can_delete
false
end
def can_recover
false
end
def can_wiki
false
%i{
can_view
can_edit
can_delete
can_recover
can_wiki
}.each do |attr|
define_method("include_#{attr}?") do
false
end
end
end