From c1e5fff56534387864565d7c910d49e11a3add4a Mon Sep 17 00:00:00 2001 From: Hanzei <16541325+hanzei@users.noreply.github.com> Date: Mon, 15 Oct 2018 16:04:22 +0200 Subject: Add GetPostsSince() to plugin API (#9649) --- 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 53f3516fc..85d62b317 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -311,6 +311,10 @@ func (api *PluginAPI) GetPost(postId string) (*model.Post, *model.AppError) { return api.app.GetSinglePost(postId) } +func (api *PluginAPI) GetPostsSince(channelId string, time int64) (*model.PostList, *model.AppError) { + return api.app.GetPostsSince(channelId, time) +} + func (api *PluginAPI) GetPostsForChannel(channelId string, page, perPage int) (*model.PostList, *model.AppError) { return api.app.GetPostsPage(channelId, page, perPage) } -- cgit v1.2.3-1-g7c22