[MM-54994] Use local requests instead of HTTP requests in the flow library (#26471)

Этот коммит содержится в:
Ben Schumacher
2024-04-04 10:28:31 +02:00
коммит произвёл GitHub
родитель 3efb25667d
Коммит e3d86984cd
3 изменённых файлов: 23 добавлений и 7 удалений

Просмотреть файл

@@ -189,7 +189,7 @@ func (f *Flow) processAttachment(attachment *model.SlackAttachment) *model.Slack
if u.Host != "" && (u.Scheme == "http" || u.Scheme == "https") {
a.ImageURL = attachment.ImageURL
} else {
a.ImageURL = f.pluginURL + "/" + strings.TrimPrefix(attachment.ImageURL, "/")
a.ImageURL = fmt.Sprintf("%s/plugins/%s/%s", f.siteURL, f.pluginID, strings.TrimPrefix(attachment.ImageURL, "/"))
}
}
}