diff options
author | Martin Kraft <mkraft@users.noreply.github.com> | 2018-06-01 12:45:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 12:45:46 -0400 |
commit | 260d7a0f850a6f772b14b011022f1f65213a08a1 (patch) | |
tree | 1090ef2c0c1447be9e64baecd0d7336514922927 /app/post.go | |
parent | 5992a729c50989b7a39e42a0aaed42bc3914fb13 (diff) | |
download | chat-260d7a0f850a6f772b14b011022f1f65213a08a1.tar.gz chat-260d7a0f850a6f772b14b011022f1f65213a08a1.tar.bz2 chat-260d7a0f850a6f772b14b011022f1f65213a08a1.zip |
MM-10412: Adds deleteBy prop to posts. (#8896)
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/post.go b/app/post.go index 2efa4c90e..4f4c6f65c 100644 --- a/app/post.go +++ b/app/post.go @@ -569,14 +569,14 @@ func (a *App) GetPostsAroundPost(postId, channelId string, offset, limit int, be } } -func (a *App) DeletePost(postId string) (*model.Post, *model.AppError) { +func (a *App) DeletePost(postId, deleteByID string) (*model.Post, *model.AppError) { if result := <-a.Srv.Store.Post().GetSingle(postId); result.Err != nil { result.Err.StatusCode = http.StatusBadRequest return nil, result.Err } else { post := result.Data.(*model.Post) - if result := <-a.Srv.Store.Post().Delete(postId, model.GetMillis()); result.Err != nil { + if result := <-a.Srv.Store.Post().Delete(postId, model.GetMillis(), deleteByID); result.Err != nil { return nil, result.Err } |