From 1709b94227ed33e789f1be00d26ebbb972ce86b7 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Mon, 28 Aug 2017 07:08:37 -0700 Subject: PLT-5745 Cleaning up duplicate calls (#7298) * PLT-5745 Cleaning up duplicate calls * Fixing missing calls * Fixing broken test --- app/plugins.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/plugins.go') diff --git a/app/plugins.go b/app/plugins.go index d569dcba2..82eda067c 100644 --- a/app/plugins.go +++ b/app/plugins.go @@ -50,8 +50,8 @@ func (api *PluginAPI) GetDirectChannel(userId1, userId2 string) (*model.Channel, return GetDirectChannel(userId1, userId2) } -func (api *PluginAPI) CreatePost(post *model.Post, teamId string) (*model.Post, *model.AppError) { - return CreatePost(post, teamId, true) +func (api *PluginAPI) CreatePost(post *model.Post) (*model.Post, *model.AppError) { + return CreatePostMissingChannel(post, true) } func (api *PluginAPI) I18n(id string, r *http.Request) string { -- cgit v1.2.3-1-g7c22