diff options
author | Hanzei <16541325+hanzei@users.noreply.github.com> | 2018-10-15 16:04:22 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2018-10-15 10:04:22 -0400 |
commit | c1e5fff56534387864565d7c910d49e11a3add4a (patch) | |
tree | 6c6cddc3f747a95f186a2e1cbb3a745eb750271f /app/plugin_api.go | |
parent | 0267a1f76e48ae833a4f951c82e69db59d39b314 (diff) | |
download | chat-c1e5fff56534387864565d7c910d49e11a3add4a.tar.gz chat-c1e5fff56534387864565d7c910d49e11a3add4a.tar.bz2 chat-c1e5fff56534387864565d7c910d49e11a3add4a.zip |
Add GetPostsSince() to plugin API (#9649)
Diffstat (limited to 'app/plugin_api.go')
-rw-r--r-- | app/plugin_api.go | 4 |
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) } |