APIv4 get /channels/{channel_id}/pinned (#5893)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
64f80decaf
Коммит
8a31718db1
@@ -1053,3 +1053,11 @@ func PermanentDeleteChannel(channel *model.Channel) *model.AppError {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetPinnedPosts(channelId string) (*model.PostList, *model.AppError) {
|
||||
if result := <-Srv.Store.Channel().GetPinnedPosts(channelId); result.Err != nil {
|
||||
return nil, result.Err
|
||||
} else {
|
||||
return result.Data.(*model.PostList), nil
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user