Revert "Removes potential '//' from email links (#420)"

It breaks some installations. See https://github.com/posativ/isso/issues/523

This reverts commit 1a3f803b96.
This commit is contained in:
Jelmer Vernooij 2019-01-19 14:15:48 +00:00
parent 2f54c9236b
commit 161f2dfa20
No known key found for this signature in database
GPG Key ID: 579C160D4C9E23E8

View File

@ -77,8 +77,6 @@ class SMTP(object):
self.isso = isso self.isso = isso
self.conf = isso.conf.section("smtp") self.conf = isso.conf.section("smtp")
self.public_endpoint = isso.conf.get("server", "public-endpoint") or local("host") self.public_endpoint = isso.conf.get("server", "public-endpoint") or local("host")
if self.public_endpoint.endswith('/'):
self.public_endpoint = self.public_endpoint.rstrip('/')
self.admin_notify = any((n in ("smtp", "SMTP")) for n in isso.conf.getlist("general", "notify")) self.admin_notify = any((n in ("smtp", "SMTP")) for n in isso.conf.getlist("general", "notify"))
self.reply_notify = isso.conf.getboolean("general", "reply-notifications") self.reply_notify = isso.conf.getboolean("general", "reply-notifications")