[M-36899] Remove deprecated SourcePluginId (#17884)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2488b980e8
Коммит
758116f3e3
@@ -71,7 +71,6 @@ func (a *App) ServeInterPluginRequest(w http.ResponseWriter, r *http.Request, so
|
|||||||
context := &plugin.Context{
|
context := &plugin.Context{
|
||||||
RequestId: model.NewId(),
|
RequestId: model.NewId(),
|
||||||
UserAgent: r.UserAgent(),
|
UserAgent: r.UserAgent(),
|
||||||
SourcePluginId: sourcePluginId,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
r.Header.Set("Mattermost-Plugin-ID", sourcePluginId)
|
r.Header.Set("Mattermost-Plugin-ID", sourcePluginId)
|
||||||
|
|||||||
@@ -12,5 +12,4 @@ type Context struct {
|
|||||||
IpAddress string
|
IpAddress string
|
||||||
AcceptLanguage string
|
AcceptLanguage string
|
||||||
UserAgent string
|
UserAgent string
|
||||||
SourcePluginId string // Deprecated: Use the "Mattermost-Plugin-ID" HTTP header instead
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user