Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
topic: Rename get_topic_history_for_web_public_stream.
Amanc3a849269791
diff --git a/zerver/lib/topic.py b/zerver/lib/topic.pyindex 28c143bd2bc..613a60aabb1 100644--- a/zerver/lib/topic.py+++ b/zerver/lib/topic.py@@ -201,7 +201,7 @@ def get_topic_history_for_stream(user_profile: UserProfile,return generate_topic_history_from_db_rows(rows)-def get_topic_history_for_web_public_stream(recipient: Recipient) -> List[Dict[str, Any]]:+def get_topic_history_for_public_stream(recipient: Recipient) -> List[Dict[str, Any]]:cursor = connection.cursor()query = '''SELECTdiff --git a/zerver/views/archive.py b/zerver/views/archive.pyindex fbb7cbad186..fe3ed631b94 100644--- a/zerver/views/archive.py+++ b/zerver/views/archive.py@@ -9,7 +9,7 @@ from zerver.lib.exceptions import JsonableErrorfrom zerver.lib.response import json_successfrom zerver.lib.streams import get_stream_by_idfrom zerver.lib.timestamp import datetime_to_timestamp-from zerver.lib.topic import get_topic_history_for_web_public_stream, messages_for_topic+from zerver.lib.topic import get_topic_history_for_public_stream, messages_for_topicfrom zerver.models import Message, UserProfile@@ -85,6 +85,6 @@ def get_web_public_topics_backend(request: HttpRequest, stream_id: int) -> HttpRif not stream.is_web_public:return json_success(dict(topics=[]))- result = get_topic_history_for_web_public_stream(recipient=stream.recipient)+ result = get_topic_history_for_public_stream(recipient=stream.recipient)return json_success(dict(topics=result))