PLT-5765 Passed SiteURL to SendNotifications (#5705)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
43e5bbea37
Коммит
a8e68bd890
@@ -359,7 +359,7 @@ func (me *LoadTestProvider) UrlCommand(c *Context, channelId string, message str
|
||||
post.ChannelId = channelId
|
||||
post.UserId = c.Session.UserId
|
||||
|
||||
if _, err := app.CreatePost(post, c.TeamId, false); err != nil {
|
||||
if _, err := app.CreatePost(post, c.TeamId, false, c.GetSiteURL()); err != nil {
|
||||
return &model.CommandResponse{Text: "Unable to create post", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
||||
}
|
||||
}
|
||||
@@ -398,7 +398,7 @@ func (me *LoadTestProvider) JsonCommand(c *Context, channelId string, message st
|
||||
post.Message = message
|
||||
}
|
||||
|
||||
if _, err := app.CreatePost(post, c.TeamId, false); err != nil {
|
||||
if _, err := app.CreatePost(post, c.TeamId, false, c.GetSiteURL()); err != nil {
|
||||
return &model.CommandResponse{Text: "Unable to create post", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
||||
}
|
||||
return &model.CommandResponse{Text: "Loaded data", ResponseType: model.COMMAND_RESPONSE_TYPE_EPHEMERAL}
|
||||
|
||||
Ссылка в новой задаче
Block a user