[MM-42782] Incoming webhooks change their creator's status (#22050)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f713862041
Коммит
56424a7601
@@ -632,7 +632,7 @@ func (api *PluginAPI) GetGroupsForUser(userID string) ([]*model.Group, *model.Ap
|
||||
func (api *PluginAPI) CreatePost(post *model.Post) (*model.Post, *model.AppError) {
|
||||
post.AddProp("from_plugin", "true")
|
||||
|
||||
post, appErr := api.app.CreatePostMissingChannel(api.ctx, post, true)
|
||||
post, appErr := api.app.CreatePostMissingChannel(api.ctx, post, true, true)
|
||||
if post != nil {
|
||||
post = post.ForPlugin()
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user