Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
export: Avoid lazy UserProfile load for each attachment on local export.
Alex Vandiver123bb8c7c78a
diff --git a/zerver/lib/export.py b/zerver/lib/export.pyindex 2a772b8a862..9a349193de3 100644--- a/zerver/lib/export.py+++ b/zerver/lib/export.py@@ -2294,7 +2294,7 @@ def export_uploads_from_local(stat = os.stat(local_path)record = dict(realm_id=attachment.realm_id,- user_profile_id=attachment.owner.id,+ user_profile_id=attachment.owner_id,s3_path=path_id,path=path_id,size=stat.st_size,