mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Generalize elide_subject in case the max topic length changes.
(imported from commit 6ffdd42d39580149a83869d6aff88bad8940fe02)
This commit is contained in:
parent
5b01dadfd3
commit
ebe3acf408
@ -198,7 +198,7 @@ def build_message_from_gitlog(user_profile, name, ref, commits, before, after, u
|
||||
|
||||
def elide_subject(subject):
|
||||
if len(subject) > MAX_SUBJECT_LENGTH:
|
||||
subject = subject[:57].rstrip() + '...'
|
||||
subject = subject[:MAX_SUBJECT_LENGTH - 3].rstrip() + '...'
|
||||
return subject
|
||||
|
||||
def guess_zulip_user_from_jira(jira_username, realm):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user