url_3.py 355 B

12345678910
  1. def archive_message_url(
  2. site_url, html_root, sanitized_stream_name, sanitized_topic_name, msg_id
  3. ):
  4. """
  5. http://127.0.0.1:4000/archive/stream/213222-general/topic/newstreams.html#1234567
  6. """
  7. topic_url = archive_topic_url(
  8. site_url, html_root, sanitized_stream_name, sanitized_topic_name
  9. )
  10. return f"{topic_url}#{msg_id}"