From 1cf41c93d6ee9684dcb60b17281ac4851f43210d Mon Sep 17 00:00:00 2001 From: Chris Hutchison Date: Thu, 19 Apr 2018 22:53:14 -0400 Subject: [PATCH] Update notifications.py --- isso/ext/notifications.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/isso/ext/notifications.py b/isso/ext/notifications.py index 3b61453..f1d718f 100644 --- a/isso/ext/notifications.py +++ b/isso/ext/notifications.py @@ -130,9 +130,10 @@ class SMTP(object): def notify(self, thread, comment): body = self.format(thread, comment) - + + no_title_str = 'New comment' if uwsgi: - uwsgi.spool({b"subject": thread['title'].encode("utf-8") if not thread['title'] is None else 'New comment', + uwsgi.spool({b"subject": thread['title'].encode("utf-8") if not thread['title'] is None else no_title_str.encode("utf-8"), b"body": body.encode("utf-8")}) else: start_new_thread(self._retry, (thread["title"], body))