Add SetProfileImage for plugin API (#9831)
Этот коммит содержится в:
коммит произвёл
Hanzei
родитель
f0351f23f1
Коммит
b29f1cb844
@@ -492,7 +492,7 @@ func (a *App) ImportUser(data *UserImportData, dryRun bool) *model.AppError {
|
||||
if err != nil {
|
||||
mlog.Error("Unable to open the profile image.", mlog.Any("err", err))
|
||||
}
|
||||
if err := a.SetProfileImageFromFile(savedUser.Id, file); err != nil {
|
||||
if err := a.SetProfileImageFromMultiPartFile(savedUser.Id, file); err != nil {
|
||||
mlog.Error("Unable to set the profile image from a file.", mlog.Any("err", err))
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user