summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2018-10-18 18:11:15 +0200
committerCarlos Tadeu Panato Junior <ctadeu@gmail.com>2018-10-18 18:11:15 +0200
commitd3460276916aa326051d410e7aeae0ce7fd0c14f (patch)
tree82de7c480c8081842a9cc18d11368d8f95752842 /app
parent0d87486e996a9a83f6494dab6e4d4c4c853cb6d6 (diff)
downloadchat-d3460276916aa326051d410e7aeae0ce7fd0c14f.tar.gz
chat-d3460276916aa326051d410e7aeae0ce7fd0c14f.tar.bz2
chat-d3460276916aa326051d410e7aeae0ce7fd0c14f.zip
Add GetPostsAfter() to plugin API (#9650)
Diffstat (limited to 'app')
-rw-r--r--app/plugin_api.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/plugin_api.go b/app/plugin_api.go
index 3e03f8597..244f0bd7a 100644
--- a/app/plugin_api.go
+++ b/app/plugin_api.go
@@ -339,6 +339,10 @@ func (api *PluginAPI) GetPostsSince(channelId string, time int64) (*model.PostLi
return api.app.GetPostsSince(channelId, time)
}
+func (api *PluginAPI) GetPostsAfter(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) {
+ return api.app.GetPostsAfterPost(channelId, postId, page, perPage)
+}
+
func (api *PluginAPI) GetPostsBefore(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) {
return api.app.GetPostsBeforePost(channelId, postId, page, perPage)
}