summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/mattermost-server/v6/model/post.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-03-12 19:41:07 +0100
committerGitHub <noreply@github.com>2022-03-12 19:41:07 +0100
commitb3be2e208cb373207d6199cac5a9fc92be073e7a (patch)
tree6de6d444737edee8f0476eea87c233fa980f0002 /vendor/github.com/mattermost/mattermost-server/v6/model/post.go
parentc30e90ff3f7e9ff96ac79ed4b7d90d6346216a15 (diff)
downloadmatterbridge-msglm-b3be2e208cb373207d6199cac5a9fc92be073e7a.tar.gz
matterbridge-msglm-b3be2e208cb373207d6199cac5a9fc92be073e7a.tar.bz2
matterbridge-msglm-b3be2e208cb373207d6199cac5a9fc92be073e7a.zip
Update dependencies and vendor (#1761)
Diffstat (limited to 'vendor/github.com/mattermost/mattermost-server/v6/model/post.go')
-rw-r--r--vendor/github.com/mattermost/mattermost-server/v6/model/post.go6
1 files changed, 6 insertions, 0 deletions
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