summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2018-10-15 15:19:36 +0200
committerSaturnino Abril <saturnino.abril@gmail.com>2018-10-15 21:19:36 +0800
commit0267a1f76e48ae833a4f951c82e69db59d39b314 (patch)
treed58512d7ebc6a21a28fa8569431a29a9c35ccc78 /plugin/api.go
parent5726d3919d194ea07b2fb0672d6bfa0e2c5edf9e (diff)
downloadchat-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.go3
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)