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.

topic: Rename get_topic_history_for_web_public_stream.

Amanc3a849269791
diff --git a/zerver/lib/topic.py b/zerver/lib/topic.py
index 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 = '''
SELECT
diff --git a/zerver/views/archive.py b/zerver/views/archive.py
index fbb7cbad186..fe3ed631b94 100644
--- a/zerver/views/archive.py
+++ b/zerver/views/archive.py
@@ -9,7 +9,7 @@ from zerver.lib.exceptions import JsonableError
from zerver.lib.response import json_success
from zerver.lib.streams import get_stream_by_id
from 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_topic
from zerver.models import Message, UserProfile
@@ -85,6 +85,6 @@ def get_web_public_topics_backend(request: HttpRequest, stream_id: int) -> HttpR
if 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))