Include link to comment in email notifications

This commit is contained in:
Pelle Nilsson 2018-02-20 20:03:52 +01:00
parent 2e85ec653f
commit bc4bc55025

View File

@ -111,10 +111,12 @@ class SMTP(object):
rv.write("User's URL: %s\n" % comment["website"]) rv.write("User's URL: %s\n" % comment["website"])
rv.write("IP address: %s\n" % comment["remote_addr"]) rv.write("IP address: %s\n" % comment["remote_addr"])
rv.write("Link to comment: %s\n" % rv.write("Link to comment: %s\n" %
(local("origin") + thread["uri"] + "#isso-%i" % comment["id"])) (local("origin") + thread["uri"] + "#isso-%i" % comment["id"]))
rv.write("\n") rv.write("\n")
if admin:
uri = local("host") + "/id/%i" % comment["id"] uri = local("host") + "/id/%i" % comment["id"]
key = self.isso.sign(comment["id"]) key = self.isso.sign(comment["id"])