From 71b7b9f090bc0f14c5737f4986fb6b5608fdd3ed Mon Sep 17 00:00:00 2001 From: Hanzei <16541325+hanzei@users.noreply.github.com> Date: Mon, 15 Oct 2018 19:18:23 +0200 Subject: Add GetPostsBefore() to plugin API (#9651) --- 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 c57ca9eb5..4418c50c5 100644 --- a/app/plugin_api.go +++ b/app/plugin_api.go @@ -327,6 +327,10 @@ func (api *PluginAPI) GetPostsSince(channelId string, time int64) (*model.PostLi return api.app.GetPostsSince(channelId, time) } +func (api *PluginAPI) GetPostsBefore(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) { + return api.app.GetPostsBeforePost(channelId, postId, page, perPage) +} + 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