Add GetPostsBefore() to plugin API (#9651)

Этот коммит содержится в:
Hanzei
2018-10-15 19:18:23 +02:00
коммит произвёл Carlos Tadeu Panato Junior
родитель a35a9b9b2d
Коммит 71b7b9f090
4 изменённых файлов: 64 добавлений и 0 удалений

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

@@ -327,6 +327,10 @@ func (api *PluginAPI) GetPostsSince(channelId string, time int64) (*model.PostLi
return api.app.GetPostsSince(channelId, time)
}
func (api *PluginAPI) GetPostsBefore(channelId, postId string, page, perPage int) (*model.PostList, *model.AppError) {
return api.app.GetPostsBeforePost(channelId, postId, page, perPage)
}
func (api *PluginAPI) GetPostsForChannel(channelId string, page, perPage int) (*model.PostList, *model.AppError) {
return api.app.GetPostsPage(channelId, page, perPage)
}