Exclude post_notice_* from web hook post payload.

Exclude post_notice_* from web hook post payload.

diff --git a/app/serializers/web_hook_post_serializer.rb b/app/serializers/web_hook_post_serializer.rb
index 455c138..1bf9ae5 100644
--- a/app/serializers/web_hook_post_serializer.rb
+++ b/app/serializers/web_hook_post_serializer.rb
@@ -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

GitHub sha: 88355884

1 Like