From dac447d14e58815e558e172077a970ecb7b56a24 Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Tue, 8 Oct 2013 18:54:03 -0400 Subject: [PATCH] codebase: Truncate subjects to 60 characters (imported from commit db5ba1a8af80f2060aec03b3ba1d9e0f3e75c0b3) --- integrations/codebase/zulip_codebase_mirror | 3 +++ 1 file changed, 3 insertions(+) diff --git a/integrations/codebase/zulip_codebase_mirror b/integrations/codebase/zulip_codebase_mirror index 5251e51..8ce3823 100755 --- a/integrations/codebase/zulip_codebase_mirror +++ b/integrations/codebase/zulip_codebase_mirror @@ -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,