summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-07-21 01:38:44 +0100
committerSaturnino Abril <saturnino.abril@gmail.com>2017-07-21 08:38:44 +0800
commitf30c0b5d38248c98a9668e6e7eb3ec30e7943385 (patch)
tree2282e150cf1578d8af38db1b6a2f7feff680b9b1 /app/post.go
parent58839cefb50e56ae5b157b37e9814ae83ceee70b (diff)
downloadchat-f30c0b5d38248c98a9668e6e7eb3ec30e7943385.tar.gz
chat-f30c0b5d38248c98a9668e6e7eb3ec30e7943385.tar.bz2
chat-f30c0b5d38248c98a9668e6e7eb3ec30e7943385.zip
PLT-6596: Elasticsearch interface changes. (#6993)
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)