summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/post.go')
-rw-r--r--app/post.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/post.go b/app/post.go
index 474862b66..fe726e343 100644
--- a/app/post.go
+++ b/app/post.go
@@ -16,12 +16,14 @@ import (
"strings"
"github.com/dyatlov/go-opengraph/opengraph"
+ "golang.org/x/net/html/charset"
+
"github.com/mattermost/mattermost-server/mlog"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin"
+ "github.com/mattermost/mattermost-server/services/httpservice"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
- "golang.org/x/net/html/charset"
)
func (a *App) CreatePostAsUser(post *model.Post, clearPushNotifications bool) (*model.Post, *model.AppError) {
@@ -919,7 +921,7 @@ func (a *App) DoPostAction(postId, actionId, userId, selectedOption string) *mod
req.Header.Set("Accept", "application/json")
// Allow access to plugin routes for action buttons
- var httpClient *http.Client
+ var httpClient *httpservice.Client
url, _ := url.Parse(action.Integration.URL)
siteURL, _ := url.Parse(*a.Config().ServiceSettings.SiteURL)
subpath, _ := utils.GetSubpathFromConfig(a.Config())