Add GetPostsSince() to plugin API (#9649)

Этот коммит содержится в:
Hanzei
2018-10-15 16:04:22 +02:00
коммит произвёл Joram Wilander
родитель 0267a1f76e
Коммит c1e5fff565
4 изменённых файлов: 62 добавлений и 0 удалений

Просмотреть файл

@@ -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)
}