Patch bot only if changed (#17766)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4b04defea6
Коммит
6bb1cbca63
@@ -216,6 +216,10 @@ func (a *App) PatchBot(botUserId string, botPatch *model.BotPatch) (*model.Bot,
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if !bot.WouldPatch(botPatch) {
|
||||
return bot, nil
|
||||
}
|
||||
|
||||
bot.Patch(botPatch)
|
||||
|
||||
user, nErr := a.Srv().Store.User().Get(context.Background(), botUserId)
|
||||
|
||||
Ссылка в новой задаче
Block a user