Update notifications.py
This commit is contained in:
parent
cc485a3b54
commit
368e650ef7
@ -135,7 +135,9 @@ class SMTP(object):
|
||||
|
||||
body = self.format(thread, comment)
|
||||
|
||||
no_title_str = 'New comment'
|
||||
if thread["title"] is None:
|
||||
thread["title"] = "New comment"
|
||||
|
||||
if uwsgi:
|
||||
uwsgi.spool({b"subject": thread["title"].encode("utf-8"),
|
||||
b"body": body.encode("utf-8")})
|
||||
|
Loading…
Reference in New Issue
Block a user