[MM-54770] Add ability to export profile pictures and fix importing them (#25042)
* add ability to export pp and fix import * remove unused nopSeeker * remove debug log * fix shadow vars * generate a warning instead of an error when unable to export profile picture * fix merge conflicts --------- Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
@@ -43,6 +43,11 @@ func MakeWorker(jobServer *jobs.JobServer, app AppIface) *jobs.SimpleWorker {
|
||||
opts.IncludeArchivedChannels = true
|
||||
}
|
||||
|
||||
includeProfilePictures, ok := job.Data["include_profile_pictures"]
|
||||
if ok && includeProfilePictures == "true" {
|
||||
opts.IncludeProfilePictures = true
|
||||
}
|
||||
|
||||
outPath := *app.Config().ExportSettings.Directory
|
||||
exportFilename := job.Id + "_export.zip"
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user