Change function name

merge-requests/8/head
Bob Mottram 2020-09-01 14:12:00 +01:00
parent 254748f48f
commit b1e3f84402
1 changed files with 21 additions and 22 deletions

View File

@ -4882,16 +4882,15 @@ 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,
onionDomain: str, i2pDomain: str, onionDomain: str, i2pDomain: str,
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,18 +7256,18 @@ 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,
self.server.domain, self.server.domain,
self.server.domainFull, self.server.domainFull,
self.server.port, self.server.port,
self.server.onionDomain, self.server.onionDomain,
self.server.i2pDomain, self.server.i2pDomain,
GETstartTime, GETtimings, GETstartTime, GETtimings,
self.server.proxyType, cookie, self.server.proxyType, cookie,
self.server.debug): self.server.debug):
return return
self._benchmarkGETtimings(GETstartTime, GETtimings, self._benchmarkGETtimings(GETstartTime, GETtimings,