From 33b7393a77db800ccba154d68ef7d2b44d8f9093 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 4 Oct 2019 15:08:57 +0100 Subject: [PATCH] Set subject for posts sent to group --- inbox.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/inbox.py b/inbox.py index d046dc4b7..cdb10b84c 100644 --- a/inbox.py +++ b/inbox.py @@ -1307,13 +1307,9 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject if memberHandle!=handle: memberNickname=memberHandle.split('@')[0] memberDomain=memberHandle.split('@')[1] - # set subject including group name - postJsonObject['object']['sensitive']=True - if postJsonObject['object'].get('summary'): - if not postJsonObject['object']['summary'].startswith(groupname+': '): - postJsonObject['object']['summary']=groupname+': '+postJsonObject['object']['summary'] - else: - postJsonObject['object']['summary']=groupname + # set subject + if not postJsonObject['object'].get('summary'): + postJsonObject['object']['summary']='General Discussion' memberPort=port if ':' in memberDomain: memberPortStr=memberDomain.split(':')[1]