mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
codebase: Truncate subjects to 60 characters
(imported from commit db5ba1a8af80f2060aec03b3ba1d9e0f3e75c0b3)
This commit is contained in:
@@ -220,6 +220,9 @@ def handle_event(event):
|
||||
logging.info("Unknown event type %s, ignoring!" % (event_type,))
|
||||
|
||||
if subject and content:
|
||||
if len(subject) > 60:
|
||||
subject = subject[:57].rstrip() + '...'
|
||||
|
||||
res = client.send_message({"type": "stream",
|
||||
"to": stream,
|
||||
"subject": subject,
|
||||
|
||||
Reference in New Issue
Block a user