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.

import_realm: Update incorrect comment about emoji dir in exported data.

Mateusz Manderaf50104d47554
diff --git a/zerver/lib/import_realm.py b/zerver/lib/import_realm.py
index 062b7b73592..50ad6dd5f66 100644
--- a/zerver/lib/import_realm.py
+++ b/zerver/lib/import_realm.py
@@ -1458,9 +1458,8 @@ def do_import_realm(import_dir: Path, subdomain: str, processes: int = 1) -> Rea
default_user_profile_id=None, # Fail if there is no user set
)
- # We need to have this check as the emoji files are only present in the data
- # importer from Slack
- # For Zulip export, this doesn't exist
+ # We need to have this check as the emoji files may not
+ # be present in import data from other services.
if os.path.exists(os.path.join(import_dir, "emoji")):
import_uploads(
realm,