diff options
author | Hanzei <16541325+hanzei@users.noreply.github.com> | 2018-10-15 15:19:36 +0200 |
---|---|---|
committer | Saturnino Abril <saturnino.abril@gmail.com> | 2018-10-15 21:19:36 +0800 |
commit | 0267a1f76e48ae833a4f951c82e69db59d39b314 (patch) | |
tree | d58512d7ebc6a21a28fa8569431a29a9c35ccc78 /plugin/api.go | |
parent | 5726d3919d194ea07b2fb0672d6bfa0e2c5edf9e (diff) | |
download | chat-0267a1f76e48ae833a4f951c82e69db59d39b314.tar.gz chat-0267a1f76e48ae833a4f951c82e69db59d39b314.tar.bz2 chat-0267a1f76e48ae833a4f951c82e69db59d39b314.zip |
Add GetPostThread() to plugin API (#9652)
Diffstat (limited to 'plugin/api.go')
-rw-r--r-- | plugin/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go index 5a5727659..36012c23e 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -170,6 +170,9 @@ type API interface { // DeletePost deletes a post. DeletePost(postId string) *model.AppError + // GetPostThread gets a post with all the other posts in the same thread. + GetPostThread(postId string) (*model.PostList, *model.AppError) + // GetPost gets a post. GetPost(postId string) (*model.Post, *model.AppError) |