From 9646bddd21bf778349d1563e4fde756d4e981dd2 Mon Sep 17 00:00:00 2001 From: Ruzette Tanyag Date: Tue, 21 Feb 2017 07:36:52 -0500 Subject: Implement posts endpoints for APIv4 (#5480) * Implement delete post endpoint for apiv4 * Implement POST search post endpoint for APIv4 * removed delete post quotes * rearrange formatting --- app/post.go | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/post.go b/app/post.go index a89a72e62..9ba119413 100644 --- a/app/post.go +++ b/app/post.go @@ -400,6 +400,7 @@ func GetPostsAroundPost(postId, channelId string, offset, limit int, before bool func DeletePost(postId string) (*model.Post, *model.AppError) { if result := <-Srv.Store.Post().GetSingle(postId); result.Err != nil { + result.Err.StatusCode = http.StatusBadRequest return nil, result.Err } else { post := result.Data.(*model.Post) -- cgit v1.2.3-1-g7c22