[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 удалений

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

@@ -162,7 +162,7 @@ func (f *Flow) handle(
dialogRequest := model.OpenDialogRequest{
TriggerId: triggerID,
URL: f.pluginURL + namePath(f.name) + "/dialog",
URL: "/plugins/" + f.pluginID + namePath(f.name) + "/dialog",
Dialog: processDialog(b.Dialog, state.AppState),
}
dialogRequest.Dialog.State = fmt.Sprintf("%v,%v", fromName, selectedButton)
@@ -205,6 +205,6 @@ func (f *Flow) processButtonPostActions(post *model.Post) {
if a.Integration == nil {
a.Integration = &model.PostActionIntegration{}
}
a.Integration.URL = f.pluginURL + namePath(f.name) + "/button"
a.Integration.URL = "/plugins/" + f.pluginID + namePath(f.name) + "/button"
}
}