mirror of https://gitlab.com/bashrc2/epicyon
Set subject for posts sent to group
parent
f8237edd26
commit
33b7393a77
10
inbox.py
10
inbox.py
|
@ -1307,13 +1307,9 @@ def sendToGroupMembers(session,baseDir: str,handle: str,port: int,postJsonObject
|
||||||
if memberHandle!=handle:
|
if memberHandle!=handle:
|
||||||
memberNickname=memberHandle.split('@')[0]
|
memberNickname=memberHandle.split('@')[0]
|
||||||
memberDomain=memberHandle.split('@')[1]
|
memberDomain=memberHandle.split('@')[1]
|
||||||
# set subject including group name
|
# set subject
|
||||||
postJsonObject['object']['sensitive']=True
|
if not postJsonObject['object'].get('summary'):
|
||||||
if postJsonObject['object'].get('summary'):
|
postJsonObject['object']['summary']='General Discussion'
|
||||||
if not postJsonObject['object']['summary'].startswith(groupname+': '):
|
|
||||||
postJsonObject['object']['summary']=groupname+': '+postJsonObject['object']['summary']
|
|
||||||
else:
|
|
||||||
postJsonObject['object']['summary']=groupname
|
|
||||||
memberPort=port
|
memberPort=port
|
||||||
if ':' in memberDomain:
|
if ':' in memberDomain:
|
||||||
memberPortStr=memberDomain.split(':')[1]
|
memberPortStr=memberDomain.split(':')[1]
|
||||||
|
|
Loading…
Reference in New Issue