From 0267a1f76e48ae833a4f951c82e69db59d39b314 Mon Sep 17 00:00:00 2001 From: Hanzei <16541325+hanzei@users.noreply.github.com> Date: Mon, 15 Oct 2018 15:19:36 +0200 Subject: Add GetPostThread() to plugin API (#9652) --- app/plugin_api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app') 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) } -- cgit v1.2.3-1-g7c22