mirror of https://gitlab.com/bashrc2/epicyon
Replying to a shared item
parent
cb228fe8da
commit
113a0a3c9e
25
daemon.py
25
daemon.py
|
@ -10543,21 +10543,22 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
for m in mentionsList:
|
for m in mentionsList:
|
||||||
if m.startswith('mention='):
|
if m.startswith('mention='):
|
||||||
replyHandle = m.replace('mention=', '')
|
replyHandle = m.replace('mention=', '')
|
||||||
if m.replace('mention=', '') not in replyToList:
|
inReplyToUrl = replyHandle
|
||||||
replyToList.append(m.replace('mention=', ''))
|
if replyHandle not in replyToList:
|
||||||
if m.startswith('page='):
|
replyToList.append(replyHandle)
|
||||||
|
elif m.startswith('page='):
|
||||||
replyPageStr = m.replace('page=', '')
|
replyPageStr = m.replace('page=', '')
|
||||||
if replyPageStr.isdigit():
|
if replyPageStr.isdigit():
|
||||||
replyPageNumber = int(replyPageStr)
|
replyPageNumber = int(replyPageStr)
|
||||||
# if m.startswith('actor='):
|
elif m.startswith('sharedesc:'):
|
||||||
# replytoActor = m.replace('actor=', '')
|
# get the title for the shared item
|
||||||
inReplyToUrl = mentionsList[0]
|
shareDescription = \
|
||||||
if inReplyToUrl.startswith('sharedesc:'):
|
m.replace('sharedesc:', '').strip()
|
||||||
shareDescription = \
|
shareDescription = \
|
||||||
inReplyToUrl.replace('sharedesc:', '')
|
urllib.parse.unquote_plus(shareDescription)
|
||||||
shareDescription = \
|
shareDescription = \
|
||||||
urllib.parse.unquote_plus(shareDescription.strip())
|
shareDescription.replace('_', ' ')
|
||||||
shareDescription = shareDescription.replace('_', ' ')
|
|
||||||
self.path = self.path.split('?replydm=')[0]+'/newdm'
|
self.path = self.path.split('?replydm=')[0]+'/newdm'
|
||||||
if self.server.debug:
|
if self.server.debug:
|
||||||
print('DEBUG: replydm path ' + self.path)
|
print('DEBUG: replydm path ' + self.path)
|
||||||
|
|
Loading…
Reference in New Issue