Add GetPostsAfter() to plugin API (#9650)

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

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

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