Update notifications.py

This commit is contained in:
Chris Hutchison 2018-04-19 22:53:14 -04:00 committed by GitHub
parent 9ded4928db
commit 1cf41c93d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,8 +131,9 @@ class SMTP(object):
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))