forked from indymedia/epicyon
Change function name
parent
254748f48f
commit
b1e3f84402
|
@ -4882,7 +4882,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
'post muted done',
|
'post muted done',
|
||||||
'unmute activated')
|
'unmute activated')
|
||||||
|
|
||||||
def _showReplies(self, authorized: bool,
|
def _showRepliesToPost(self, authorized: bool,
|
||||||
callingDomain: str, path: str,
|
callingDomain: str, path: str,
|
||||||
baseDir: str, httpPrefix: str,
|
baseDir: str, httpPrefix: str,
|
||||||
domain: str, domainFull: str, port: int,
|
domain: str, domainFull: str, port: int,
|
||||||
|
@ -4890,8 +4890,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
GETstartTime, GETtimings: {},
|
GETstartTime, GETtimings: {},
|
||||||
proxyType: str, cookie: str,
|
proxyType: str, cookie: str,
|
||||||
debug: str) -> bool:
|
debug: str) -> bool:
|
||||||
"""Shows the replies timeline
|
"""Shows the replies to a post
|
||||||
Returns true if the timeline was shown
|
|
||||||
"""
|
"""
|
||||||
if not ('/statuses/' in path and '/users/' in path):
|
if not ('/statuses/' in path and '/users/' in path):
|
||||||
return False
|
return False
|
||||||
|
@ -7257,7 +7256,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
|
|
||||||
# get replies to a post /users/nickname/statuses/number/replies
|
# get replies to a post /users/nickname/statuses/number/replies
|
||||||
if self.path.endswith('/replies') or '/replies?page=' in self.path:
|
if self.path.endswith('/replies') or '/replies?page=' in self.path:
|
||||||
if self._showReplies(authorized,
|
if self._showRepliesToPost(authorized,
|
||||||
callingDomain, self.path,
|
callingDomain, self.path,
|
||||||
self.server.baseDir,
|
self.server.baseDir,
|
||||||
self.server.httpPrefix,
|
self.server.httpPrefix,
|
||||||
|
|
Loading…
Reference in New Issue