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) --- plugin/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index e0b3dde3c..713fab1b4 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -188,6 +188,9 @@ type API interface { // GetPostsSince gets posts created after a specified time as Unix time in milliseconds. GetPostsSince(channelId string, time int64) (*model.PostList, *model.AppError) + // GetPostsBefore gets a page of posts that were posted before the post provided. + GetPostsBefore(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) + // GetPostsForChannel gets a list of posts for a channel. GetPostsForChannel(channelId string, page, perPage int) (*model.PostList, *model.AppError) -- cgit v1.2.3-1-g7c22