Automatically append HTTP root to newsletter URL

This commit is contained in:
JonnyWong16 2018-03-21 19:18:49 -07:00
parent 1f10668838
commit 511f4a916b
5 changed files with 18 additions and 18 deletions

View file

@ -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']