Exclude post_notice_* from web hook post payload.

This commit is contained in:
Guo Xiang Tan 2019-03-11 11:04:17 +08:00
parent 8384075184
commit 88355884c9
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ class WebHookPostSerializer < PostSerializer
primary_group_flair_url
primary_group_flair_bg_color
primary_group_flair_color
post_notice_time
post_notice_type
}.each do |attr|
define_method("include_#{attr}?") do
false