mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
import: 'attachment_path' should be saved with the 's3_path' of the record.
For the S3 backend uploads, 'attachment_path' should be saved with the 's3_path' of the record, as the original 'path' is changed while exporting files from s3. (See function 'export_files_from_s3' in export.py for reference.)
This commit is contained in:
@@ -345,7 +345,7 @@ def import_uploads_s3(bucket_name: str, import_dir: Path, processing_avatars: bo
|
||||
sanitize_name(os.path.basename(record['path']))
|
||||
])
|
||||
key.key = s3_file_name
|
||||
path_maps['attachment_path'][record['path']] = s3_file_name
|
||||
path_maps['attachment_path'][record['s3_path']] = s3_file_name
|
||||
|
||||
user_profile_id = int(record['user_profile_id'])
|
||||
# Support email gateway bot and other cross-realm messages
|
||||
|
||||
Reference in New Issue
Block a user