summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/post.go')
-rw-r--r--app/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/post.go b/app/post.go
index 7ad072943..447fef6bb 100644
--- a/app/post.go
+++ b/app/post.go
@@ -473,7 +473,7 @@ func DeletePost(postId string) (*model.Post, *model.AppError) {
esInterface := einterfaces.GetElasticsearchInterface()
if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing {
- go esInterface.DeletePost(post.Id)
+ go esInterface.DeletePost(post)
}
InvalidateCacheForChannelPosts(post.ChannelId)