From 2db37e93a7547005865c87efef3b14e6c5875a94 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 28 Nov 2022 14:16:01 +0000 Subject: [PATCH] Default page number for moved accounts --- daemon.py | 2 ++ relationships.py | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index acc9d5207..c1def2d2e 100644 --- a/daemon.py +++ b/daemon.py @@ -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, diff --git a/relationships.py b/relationships.py index b93f441ef..fdac55ed2 100644 --- a/relationships.py +++ b/relationships.py @@ -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