Truncate long Freshdesk subjects.

We're getting errors on prod for subjects that are too long.

(imported from commit 742d92745be543d4b33d0888c6653bbee3f86c25)
This commit is contained in:
Jessica McKellar 2013-11-21 16:43:28 -05:00
parent 10c5517414
commit f8435cde82
1 changed files with 1 additions and 1 deletions

View File

@ -694,7 +694,7 @@ def api_freshdesk_webhook(request, user_profile, stream=REQ(default='')):
ticket = TicketDict(ticket_data)
subject = "#%s: %s" % (ticket.id, ticket.subject)
subject = elide_subject("#%s: %s" % (ticket.id, ticket.subject))
try:
event_info = parse_freshdesk_event(ticket.triggered_event)