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 /app | |
parent | 5726d3919d194ea07b2fb0672d6bfa0e2c5edf9e (diff) | |
download | chat-0267a1f76e48ae833a4f951c82e69db59d39b314.tar.gz chat-0267a1f76e48ae833a4f951c82e69db59d39b314.tar.bz2 chat-0267a1f76e48ae833a4f951c82e69db59d39b314.zip |
Add GetPostThread() to plugin API (#9652)
Diffstat (limited to 'app')
-rw-r--r-- | app/plugin_api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/plugin_api.go b/app/plugin_api.go index 70b3d60fe..53f3516fc 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -303,6 +303,10 @@ func (api *PluginAPI) DeletePost(postId string) *model.AppError { return err } +func (api *PluginAPI) GetPostThread(postId string) (*model.PostList, *model.AppError) { + return api.app.GetPostThread(postId) +} + func (api *PluginAPI) GetPost(postId string) (*model.Post, *model.AppError) { return api.app.GetSinglePost(postId) } |