diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/post.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) |