From 7261e87f8c2315c3cb18ed1fbd3026f93506bf5e Mon Sep 17 00:00:00 2001 From: angcast Date: Wed, 9 Dec 2020 21:17:06 -0500 Subject: [PATCH] Fixed subject line when sending email --- browser/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/browser/views.py b/browser/views.py index 3b5339d7..1092297c 100644 --- a/browser/views.py +++ b/browser/views.py @@ -815,7 +815,6 @@ def load_thread(request): @login_required def insert_post(request): try: - logger.debug("insert post") user = get_object_or_404(UserProfile, email=request.user.email) group_name = request.POST['group_name'] @@ -831,7 +830,7 @@ def insert_post(request): subj_tag += '[%s]' % tag['name'] stripped_subj = re.sub("\[.*?\]", "", request.POST['subject']) - subject = '[%s]%s %s' %(friendly_name, subj_tag, stripped_subj) + subject = '[%s]%s %s' %( friendly_name if friendly_name != '' else group_name, subj_tag, stripped_subj) msg_id = res['msg_id']