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.
This commit is contained in:
Tim Abbott 2024-10-08 17:10:36 -07:00
parent 0c29e067b4
commit 4caa396f49
1 changed files with 1 additions and 1 deletions

View File

@ -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(