Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
digest: Check whether length of hot topics is 4.
Vishnu KSc0bd05b52d9f
diff --git a/zerver/lib/digest.py b/zerver/lib/digest.pyindex bf745a19001..a6ba0802e3d 100644--- a/zerver/lib/digest.py+++ b/zerver/lib/digest.py@@ -195,7 +195,7 @@ def get_hot_topics(for topic in topics_by_length:if topic not in hot_topics:hot_topics.append(topic)- if len(hot_topics) >= 4:+ if len(hot_topics) == 4:breakreturn hot_topics