diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/post.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/post.go b/app/post.go index 375b775e8..bf797b984 100644 --- a/app/post.go +++ b/app/post.go @@ -397,6 +397,14 @@ func GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *mo } } +func GetFlaggedPostsForTeam(userId, teamId string, offset int, limit int) (*model.PostList, *model.AppError) { + if result := <-Srv.Store.Post().GetFlaggedPostsForTeam(userId, teamId, offset, limit); result.Err != nil { + return nil, result.Err + } else { + return result.Data.(*model.PostList), nil + } +} + func GetPermalinkPost(postId string, userId string, siteURL string) (*model.PostList, *model.AppError) { if result := <-Srv.Store.Post().Get(postId); result.Err != nil { return nil, result.Err |