Default page number for moved accounts

merge-requests/30/head
Bob Mottram 2022-11-28 14:16:01 +00:00
parent 9170a0df4f
commit 2db37e93a7
2 changed files with 2 additions and 4 deletions

View File

@ -14382,6 +14382,8 @@ class PubServer(BaseHTTPRequestHandler):
if '?page=' not in path:
search_path = path
# get a page of following, not the summary
path = path.replace('/moved', '/moved?page=' +
str(page_number))
following = \
get_moved_feed(base_dir, domain, port, path,
http_prefix, authorized,

View File

@ -46,9 +46,6 @@ def get_moved_accounts(base_dir: str, nickname: str, domain: str,
refollow_dict[prev_handle] = new_handle
ctr = ctr + 1
print(str(ctr) + ' moved accounts')
print('moved_dict: ' + str(refollow_dict))
follow_filename = \
acct_dir(base_dir, nickname, domain) + '/' + filename
follow_str = ''
@ -65,7 +62,6 @@ def get_moved_accounts(base_dir: str, nickname: str, domain: str,
for handle in follow_list:
if refollow_dict.get(handle):
result[handle] = refollow_dict[handle]
print('moved_dict 2: ' + str(result))
return result