Fix #4020: Flagger name information leak.
This commit is contained in:
@@ -61,4 +61,11 @@ class PostEvent
|
|||||||
"type": nil,
|
"type": nil,
|
||||||
}
|
}
|
||||||
end
|
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
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user