From a755bcdde63b2f27866d49be97bb82e4cdb0e893 Mon Sep 17 00:00:00 2001 From: Charles Birk Date: Mon, 17 Sep 2018 10:15:28 -0400 Subject: [MM-11860]: Expose slack attachment parsing functions in the model package (#9351) Refactored parseSlackAttachment functions from https://github.com/mattermost/mattermost-server/blob/master/app/post.go#L312 into model/slack_attachments.go so that plugins have access to them. --- app/slackimport.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/slackimport.go') diff --git a/app/slackimport.go b/app/slackimport.go index 5f1f73632..d3a91815d 100644 --- a/app/slackimport.go +++ b/app/slackimport.go @@ -796,7 +796,7 @@ func (a *App) OldImportIncomingWebhookPost(post *model.Post, props model.StringI for key, val := range props { if key == "attachments" { if attachments, success := val.([]*model.SlackAttachment); success { - parseSlackAttachment(post, attachments) + model.ParseSlackAttachment(post, attachments) } } else if key != "from_webhook" { post.AddProp(key, val) -- cgit v1.2.3-1-g7c22