summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2018-10-15 16:04:22 +0200
committerJoram Wilander <jwawilander@gmail.com>2018-10-15 10:04:22 -0400
commitc1e5fff56534387864565d7c910d49e11a3add4a (patch)
tree6c6cddc3f747a95f186a2e1cbb3a745eb750271f /app
parent0267a1f76e48ae833a4f951c82e69db59d39b314 (diff)
downloadchat-c1e5fff56534387864565d7c910d49e11a3add4a.tar.gz
chat-c1e5fff56534387864565d7c910d49e11a3add4a.tar.bz2
chat-c1e5fff56534387864565d7c910d49e11a3add4a.zip
Add GetPostsSince() to plugin API (#9649)
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 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)
}