Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

zilencer: Don't consider deactivated realms to transfer server plan.

Aman Agrawalb4e92ecc4805
diff --git a/zilencer/views.py b/zilencer/views.py
index d8692fdbc2c..b0db50f0364 100644
--- a/zilencer/views.py
+++ b/zilencer/views.py
@@ -739,6 +739,7 @@ def get_human_user_realm_uuids(realms: List[RealmDataForAnalytics]) -> List[UUID
# TODO: Remove the `zulipinternal` string_id check once no server is on 8.0-beta.
if (
realm.is_system_bot_realm
+ or realm.deactivated
or realm.host.startswith("zulipinternal.")
or (settings.DEVELOPMENT and realm.host.startswith("analytics."))
):