mirror of https://gitlab.com/bashrc2/epicyon
Returning first page
parent
3469850199
commit
ee365cff13
|
@ -9228,7 +9228,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if outboxFeed:
|
if outboxFeed:
|
||||||
nickname = \
|
nickname = \
|
||||||
path.replace('/users/', '').replace('/outbox', '')
|
path.replace('/users/', '').replace('/outbox', '')
|
||||||
pageNumber = 1
|
pageNumber = 0
|
||||||
if '?page=' in nickname:
|
if '?page=' in nickname:
|
||||||
pageNumber = nickname.split('?page=')[1]
|
pageNumber = nickname.split('?page=')[1]
|
||||||
nickname = nickname.split('?page=')[0]
|
nickname = nickname.split('?page=')[0]
|
||||||
|
@ -9236,7 +9236,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
pageNumber = int(pageNumber)
|
pageNumber = int(pageNumber)
|
||||||
else:
|
else:
|
||||||
pageNumber = 1
|
pageNumber = 1
|
||||||
if authorized and pageNumber > 1:
|
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
|
||||||
pageStr = '?page=' + str(pageNumber)
|
pageStr = '?page=' + str(pageNumber)
|
||||||
outboxFeed = \
|
outboxFeed = \
|
||||||
|
@ -9250,6 +9250,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
self.server.newswireVotesThreshold,
|
self.server.newswireVotesThreshold,
|
||||||
self.server.positiveVoting,
|
self.server.positiveVoting,
|
||||||
self.server.votingTimeMins)
|
self.server.votingTimeMins)
|
||||||
|
else:
|
||||||
|
pageNumber = 1
|
||||||
|
|
||||||
if self._requestHTTP():
|
if self._requestHTTP():
|
||||||
fullWidthTimelineButtonHeader = \
|
fullWidthTimelineButtonHeader = \
|
||||||
|
|
Loading…
Reference in New Issue