mirror of https://github.com/zulip/zulip.git
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:
parent
0c29e067b4
commit
4caa396f49
|
@ -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.
|
# 'zulip_update_announcements_level' is set to None by default.
|
||||||
# Set it to the latest level to avoid receiving older update messages.
|
# Set it to the latest level to avoid receiving older update messages.
|
||||||
is_realm_imported_from_other_zulip_server = RealmAuditLog.objects.filter(
|
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()
|
).exists()
|
||||||
if not is_realm_imported_from_other_zulip_server:
|
if not is_realm_imported_from_other_zulip_server:
|
||||||
send_zulip_update_announcements_to_realm(
|
send_zulip_update_announcements_to_realm(
|
||||||
|
|
Loading…
Reference in New Issue