diff options
author | Hanzei <Hanzei@users.noreply.github.com> | 2018-08-18 14:35:32 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-08-18 08:35:32 -0400 |
commit | c2f2fda8a19b22453c99d832cca6eaad48a1b964 (patch) | |
tree | 1b1846634280afb8107a8122e1a00767df732d5a | |
parent | 97d8470a36db54e4a19b659c3f725743a93a9354 (diff) | |
download | chat-c2f2fda8a19b22453c99d832cca6eaad48a1b964.tar.gz chat-c2f2fda8a19b22453c99d832cca6eaad48a1b964.tar.bz2 chat-c2f2fda8a19b22453c99d832cca6eaad48a1b964.zip |
Add PostId to PostActionIntegrationRequest (#9270)
-rw-r--r-- | app/post.go | 1 | ||||
-rw-r--r-- | model/post.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/post.go b/app/post.go index 299c9ce3a..d4649d64c 100644 --- a/app/post.go +++ b/app/post.go @@ -869,6 +869,7 @@ func (a *App) DoPostAction(postId string, actionId string, userId string) *model request := &model.PostActionIntegrationRequest{ UserId: userId, + PostId: postId, Context: action.Integration.Context, } diff --git a/model/post.go b/model/post.go index 1dd0a4db6..bec31aea7 100644 --- a/model/post.go +++ b/model/post.go @@ -121,6 +121,7 @@ type PostActionIntegration struct { type PostActionIntegrationRequest struct { UserId string `json:"user_id"` + PostId string `json:"post_id"` Context StringInterface `json:"context,omitempty"` } |