summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2018-10-15 19:18:23 +0200
committerCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-10-15 19:18:23 +0200
commit71b7b9f090bc0f14c5737f4986fb6b5608fdd3ed (patch)
treec3a313e917f75c79a010a97e2887d0e50851808a /plugin/api.go
parenta35a9b9b2d9720a3753c96a4a3a36d437e518140 (diff)
downloadchat-71b7b9f090bc0f14c5737f4986fb6b5608fdd3ed.tar.gz
chat-71b7b9f090bc0f14c5737f4986fb6b5608fdd3ed.tar.bz2
chat-71b7b9f090bc0f14c5737f4986fb6b5608fdd3ed.zip
Add GetPostsBefore() to plugin API (#9651)
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go3
1 files changed, 3 insertions, 0 deletions
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)