From b3be2e208cb373207d6199cac5a9fc92be073e7a Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 12 Mar 2022 19:41:07 +0100 Subject: Update dependencies and vendor (#1761) --- vendor/github.com/mattermost/mattermost-server/v6/model/post.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vendor/github.com/mattermost/mattermost-server/v6/model/post.go') diff --git a/vendor/github.com/mattermost/mattermost-server/v6/model/post.go b/vendor/github.com/mattermost/mattermost-server/v6/model/post.go index d13fef0a..87c1f338 100644 --- a/vendor/github.com/mattermost/mattermost-server/v6/model/post.go +++ b/vendor/github.com/mattermost/mattermost-server/v6/model/post.go @@ -6,6 +6,7 @@ package model import ( "encoding/json" "errors" + "io" "net/http" "regexp" "sort" @@ -227,6 +228,11 @@ func (o *Post) ToJSON() (string, error) { return string(b), err } +func (o *Post) EncodeJSON(w io.Writer) error { + o.StripActionIntegrations() + return json.NewEncoder(w).Encode(o) +} + type GetPostsSinceOptions struct { UserId string ChannelId string -- cgit v1.2.3