forked from indymedia/epicyon
Mentioned recipients go into 'to' for dms
parent
c417f18c65
commit
9e53f93997
|
@ -2801,6 +2801,7 @@ class PubServer(BaseHTTPRequestHandler):
|
|||
if messageJson:
|
||||
self.postToNickname=nickname
|
||||
if self.server.debug:
|
||||
pprint(messageJson)
|
||||
print('DEBUG: new DM to '+str(messageJson['object']['to']))
|
||||
if self._postToOutbox(messageJson,__version__):
|
||||
populateReplies(self.server.baseDir, \
|
||||
|
|
7
posts.py
7
posts.py
|
@ -920,7 +920,8 @@ def createDirectMessagePost(baseDir: str,
|
|||
return None
|
||||
postTo=None
|
||||
postCc=None
|
||||
return createPostBase(baseDir,nickname,domain,port, \
|
||||
messageJson= \
|
||||
createPostBase(baseDir,nickname,domain,port, \
|
||||
postTo,postCc, \
|
||||
httpPrefix,content,followersOnly,saveToFile, \
|
||||
clientToServer, \
|
||||
|
@ -928,6 +929,10 @@ def createDirectMessagePost(baseDir: str,
|
|||
imageDescription,useBlurhash, \
|
||||
False,inReplyTo,inReplyToAtomUri,subject, \
|
||||
eventDate,eventTime,location)
|
||||
# mentioned recipients go into To rather than Cc
|
||||
messageJson['object']['to']=messageJson['object']['cc']
|
||||
messageJson['object']['cc']=[]
|
||||
return messageJson
|
||||
|
||||
def createReportPost(baseDir: str,
|
||||
nickname: str, domain: str, port: int,httpPrefix: str, \
|
||||
|
|
Loading…
Reference in New Issue