From e5386043453bc05264609f1a77fafb66aeea0857 Mon Sep 17 00:00:00 2001 From: Martin Kraft Date: Mon, 26 Jul 2021 08:32:35 -0400 Subject: [PATCH] MM-36446: Omit Filenames from Post JSON. (#17985) Co-authored-by: Mattermod --- model/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/post.go b/model/post.go index 46bb703ab9..e60ff9a735 100644 --- a/model/post.go +++ b/model/post.go @@ -92,7 +92,7 @@ type Post struct { propsMu sync.RWMutex `db:"-"` // Unexported mutex used to guard Post.Props. Props StringInterface `json:"props"` // Deprecated: use GetProps() Hashtags string `json:"hashtags"` - Filenames StringArray `json:"filenames,omitempty"` // Deprecated, do not use this field any more + Filenames StringArray `json:"-"` // Deprecated, do not use this field any more FileIds StringArray `json:"file_ids,omitempty"` PendingPostId string `json:"pending_post_id" db:"-"` HasReactions bool `json:"has_reactions,omitempty"`