mirror of https://gitlab.com/bashrc2/epicyon
Splitting
parent
ea44c35901
commit
afea4533b1
12
daemon.py
12
daemon.py
|
@ -1529,10 +1529,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# announce/repeat from the web interface
|
# announce/repeat from the web interface
|
||||||
if htmlGET and '?repeat=' in self.path:
|
if htmlGET and '?repeat=' in self.path:
|
||||||
pageNumber=1
|
pageNumber=1
|
||||||
if not repeatPrivate:
|
|
||||||
repeatUrl=self.path.split('?repeat=')[1]
|
repeatUrl=self.path.split('?repeat=')[1]
|
||||||
else:
|
|
||||||
repeatUrl=self.path.split('?repeatprivate=')[1]
|
|
||||||
if '?' in repeatUrl:
|
if '?' in repeatUrl:
|
||||||
repeatUrl=repeatUrl.split('?')[0]
|
repeatUrl=repeatUrl.split('?')[0]
|
||||||
timelineBookmark=''
|
timelineBookmark=''
|
||||||
|
@ -1552,10 +1549,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
timelineStr=self.path.split('?tl=')[1]
|
timelineStr=self.path.split('?tl=')[1]
|
||||||
if '?' in timelineStr:
|
if '?' in timelineStr:
|
||||||
timelineStr=timelineStr.split('?')[0]
|
timelineStr=timelineStr.split('?')[0]
|
||||||
if not repeatPrivate:
|
|
||||||
actor=self.path.split('?repeat=')[0]
|
actor=self.path.split('?repeat=')[0]
|
||||||
else:
|
|
||||||
actor=self.path.split('?repeatprivate=')[0]
|
|
||||||
self.postToNickname=getNicknameFromActor(actor)
|
self.postToNickname=getNicknameFromActor(actor)
|
||||||
if not self.postToNickname:
|
if not self.postToNickname:
|
||||||
print('WARN: unable to find nickname in '+actor)
|
print('WARN: unable to find nickname in '+actor)
|
||||||
|
@ -1604,10 +1598,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
# undo an announce/repeat from the web interface
|
# undo an announce/repeat from the web interface
|
||||||
if htmlGET and '?unrepeat=' in self.path:
|
if htmlGET and '?unrepeat=' in self.path:
|
||||||
pageNumber=1
|
pageNumber=1
|
||||||
if not unrepeatPrivate:
|
|
||||||
repeatUrl=self.path.split('?unrepeat=')[1]
|
repeatUrl=self.path.split('?unrepeat=')[1]
|
||||||
else:
|
|
||||||
repeatUrl=self.path.split('?unrepeatprivate=')[1]
|
|
||||||
if '?' in repeatUrl:
|
if '?' in repeatUrl:
|
||||||
repeatUrl=repeatUrl.split('?')[0]
|
repeatUrl=repeatUrl.split('?')[0]
|
||||||
timelineBookmark=''
|
timelineBookmark=''
|
||||||
|
@ -1627,10 +1618,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
timelineStr=self.path.split('?tl=')[1]
|
timelineStr=self.path.split('?tl=')[1]
|
||||||
if '?' in timelineStr:
|
if '?' in timelineStr:
|
||||||
timelineStr=timelineStr.split('?')[0]
|
timelineStr=timelineStr.split('?')[0]
|
||||||
if not unrepeatPrivate:
|
|
||||||
actor=self.path.split('?unrepeat=')[0]
|
actor=self.path.split('?unrepeat=')[0]
|
||||||
else:
|
|
||||||
actor=self.path.split('?unrepeatprivate=')[0]
|
|
||||||
self.postToNickname=getNicknameFromActor(actor)
|
self.postToNickname=getNicknameFromActor(actor)
|
||||||
if not self.postToNickname:
|
if not self.postToNickname:
|
||||||
print('WARN: unable to find nickname in '+actor)
|
print('WARN: unable to find nickname in '+actor)
|
||||||
|
|
Loading…
Reference in New Issue