diff options
Diffstat (limited to 'app/webhook.go')
-rw-r--r-- | app/webhook.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/webhook.go b/app/webhook.go index 61b8b4d1a..04887f203 100644 --- a/app/webhook.go +++ b/app/webhook.go @@ -11,7 +11,6 @@ import ( "unicode/utf8" l4g "github.com/alecthomas/log4go" - "github.com/mattermost/mattermost-server/einterfaces" "github.com/mattermost/mattermost-server/model" "github.com/mattermost/mattermost-server/store" "github.com/mattermost/mattermost-server/utils" @@ -126,7 +125,7 @@ func (a *App) CreateWebhookPost(userId string, channel *model.Channel, text, ove post := &model.Post{UserId: userId, ChannelId: channel.Id, Message: text, Type: postType} post.AddProp("from_webhook", "true") - if metrics := einterfaces.GetMetricsInterface(); metrics != nil { + if metrics := a.Metrics; metrics != nil { metrics.IncrementWebhookPost() } |