notify_from: fall back to smtp_from
This commit is contained in:
parent
010005e5b7
commit
f6b0b1bd03
|
@ -18,7 +18,8 @@ from datetime import datetime
|
|||
ticket = Blueprint("ticket", __name__)
|
||||
|
||||
smtp_user = cfg("mail", "smtp-user", default=None)
|
||||
notify_from = cfg("todo.sr.ht", "notify-from", default=None)
|
||||
smtp_from = cfg("mail", "smtp-from", default=None)
|
||||
notify_from = cfg("todo.sr.ht", "notify-from", default=smtp_from)
|
||||
|
||||
@ticket.route("/<owner>/<name>/<int:ticket_id>")
|
||||
def ticket_GET(owner, name, ticket_id):
|
||||
|
|
|
@ -20,7 +20,8 @@ tracker = Blueprint("tracker", __name__)
|
|||
name_re = re.compile(r"^([a-z][a-z0-9_.-]*?)+$")
|
||||
|
||||
smtp_user = cfg("mail", "smtp-user", default=None)
|
||||
notify_from = cfg("todo.sr.ht", "notify-from", default=None)
|
||||
smtp_from = cfg("mail", "smtp-from", default=None)
|
||||
notify_from = cfg("todo.sr.ht", "notify-from", default=smtp_from)
|
||||
|
||||
@tracker.route("/tracker/create")
|
||||
@loginrequired
|
||||
|
|
Loading…
Reference in New Issue