mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 07:22:37 -07:00
Automatically append HTTP root to newsletter URL
This commit is contained in:
parent
1f10668838
commit
511f4a916b
5 changed files with 18 additions and 18 deletions
|
@ -78,8 +78,8 @@ def notify(newsletter_id=None, notify_action=None, **kwargs):
|
|||
return
|
||||
|
||||
if notify_action in ('test', 'api'):
|
||||
subject = kwargs.pop('subject', newsletter_config['subject'])
|
||||
body = kwargs.pop('body', newsletter_config['body'])
|
||||
subject = kwargs.pop('subject', None) or newsletter_config['subject']
|
||||
body = kwargs.pop('body', None) or newsletter_config['body']
|
||||
else:
|
||||
subject = newsletter_config['subject']
|
||||
body = newsletter_config['body']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue