Getting outbox pages

main
Bob Mottram 2021-08-01 15:08:02 +01:00
parent d6ac3b91cb
commit 0f716bf081
1 changed files with 24 additions and 25 deletions

View File

@ -9228,7 +9228,6 @@ class PubServer(BaseHTTPRequestHandler):
self.server.positiveVoting, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
if outboxFeed: if outboxFeed:
if self._requestHTTP():
nickname = \ nickname = \
path.replace('/users/', '').replace('/outbox', '') path.replace('/users/', '').replace('/outbox', '')
pageNumber = 1 pageNumber = 1
@ -9239,21 +9238,21 @@ class PubServer(BaseHTTPRequestHandler):
pageNumber = int(pageNumber) pageNumber = int(pageNumber)
else: else:
pageNumber = 1 pageNumber = 1
if 'page=' not in path: if authorized and pageNumber > 1:
# if a page wasn't specified then show the first one # if a page wasn't specified then show the first one
outboxFeed = \ outboxFeed = \
personBoxJson(self.server.recentPostsCache, personBoxJson(self.server.recentPostsCache,
self.server.session, self.server.session,
baseDir, baseDir, domain, port,
domain, path + '?page=' + str(pageNumber),
port,
path + '?page=1',
httpPrefix, httpPrefix,
maxPostsInFeed, 'outbox', maxPostsInFeed, 'outbox',
authorized, authorized,
self.server.newswireVotesThreshold, self.server.newswireVotesThreshold,
self.server.positiveVoting, self.server.positiveVoting,
self.server.votingTimeMins) self.server.votingTimeMins)
if self._requestHTTP():
fullWidthTimelineButtonHeader = \ fullWidthTimelineButtonHeader = \
self.server.fullWidthTimelineButtonHeader self.server.fullWidthTimelineButtonHeader
minimalNick = isMinimal(baseDir, domain, nickname) minimalNick = isMinimal(baseDir, domain, nickname)