Set page number

merge-requests/30/head
Bob Mottram 2022-11-28 15:57:44 +00:00
parent 21bc4e0a46
commit 2ae6c8794c
2 changed files with 2 additions and 2 deletions

View File

@ -14377,7 +14377,6 @@ class PubServer(BaseHTTPRequestHandler):
get_moved_feed(base_dir, domain, port, path,
http_prefix, authorized, FOLLOWS_PER_PAGE)
if following:
print('_show_moved_feed 1: ' + str(following))
if self._request_http():
page_number = 1
if '?page=' not in path:
@ -14387,7 +14386,6 @@ class PubServer(BaseHTTPRequestHandler):
get_moved_feed(base_dir, domain, port, path,
http_prefix, authorized,
FOLLOWS_PER_PAGE)
print('_show_moved_feed 2: ' + str(following))
else:
page_number_str = path.split('?page=')[1]
if ';' in page_number_str:

View File

@ -76,6 +76,8 @@ def get_moved_feed(base_dir: str, domain: str, port: int, path: str,
if '/moved' not in path:
return None
if '?page=' not in path:
path = path.replace('/moved', '/moved?page=true')
# handle page numbers
header_only = True
page_number = None