diff --git a/app/models/post_event.rb b/app/models/post_event.rb index 26a8cd1af..5b46fde6b 100644 --- a/app/models/post_event.rb +++ b/app/models/post_event.rb @@ -61,4 +61,11 @@ class PostEvent "type": nil, } end + + # XXX can't use hidden_attributes because we don't inherit from ApplicationRecord. + def serializable_hash(**options) + hash = super + hash = hash.except(:creator_id) unless is_creator_visible? + hash + end end