Update notifications.py

This commit is contained in:
Chris Hutchison 2018-04-22 13:32:47 -04:00 committed by GitHub
parent cc485a3b54
commit 368e650ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,7 +135,9 @@ class SMTP(object):
body = self.format(thread, comment) body = self.format(thread, comment)
no_title_str = 'New comment' if thread["title"] is None:
thread["title"] = "New comment"
if uwsgi: if uwsgi:
uwsgi.spool({b"subject": thread["title"].encode("utf-8"), uwsgi.spool({b"subject": thread["title"].encode("utf-8"),
b"body": body.encode("utf-8")}) b"body": body.encode("utf-8")})