Include link to comment in email notifications
This commit is contained in:
parent
2e85ec653f
commit
bc4bc55025
@ -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"])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user