diff options
Diffstat (limited to 'app/channel.go')
-rw-r--r-- | app/channel.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/channel.go b/app/channel.go index 5278abbfe..61b139e5b 100644 --- a/app/channel.go +++ b/app/channel.go @@ -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 + } +} |