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.

onboarding: Fix the query for 'greetings_message'.

Prakhar Pratyushaad66674e77d
diff --git a/zerver/lib/onboarding.py b/zerver/lib/onboarding.py
index edba977f146..fc3275ba5e6 100644
--- a/zerver/lib/onboarding.py
+++ b/zerver/lib/onboarding.py
@@ -475,7 +475,9 @@ they can be disabled. [Learn more]({zulip_update_announcements_help_url}).
# This is a bit hacky, but works and is kinda a 1-off thing.
greetings_message = (
Message.objects.select_for_update()
- .filter(id__in=message_ids, content__icontains="a great place to say “hi”")
+ .filter(
+ id__in=message_ids, content=remove_single_newlines(content1_of_greetings_topic_name)
+ )
.first()
)
assert greetings_message is not None