From 4caa396f49998f93cc884c8261931ae3c8645194 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Tue, 8 Oct 2024 17:10:36 -0700 Subject: [PATCH] import_realm: Do not check acting_user for Zulip updates. The question is whether this was previously exported, not whether it was previously exported without a traceable acting user. --- zerver/lib/import_realm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/lib/import_realm.py b/zerver/lib/import_realm.py index c49f4ac670..47fba79448 100644 --- a/zerver/lib/import_realm.py +++ b/zerver/lib/import_realm.py @@ -1720,7 +1720,7 @@ def do_import_realm(import_dir: Path, subdomain: str, processes: int = 1) -> Rea # 'zulip_update_announcements_level' is set to None by default. # Set it to the latest level to avoid receiving older update messages. is_realm_imported_from_other_zulip_server = RealmAuditLog.objects.filter( - realm=realm, event_type=AuditLogEventType.REALM_EXPORTED, acting_user=None + realm=realm, event_type=AuditLogEventType.REALM_EXPORTED ).exists() if not is_realm_imported_from_other_zulip_server: send_zulip_update_announcements_to_realm(