mirror of https://gitlab.com/bashrc2/epicyon
Default page number for moved accounts
parent
9170a0df4f
commit
2db37e93a7
|
@ -14382,6 +14382,8 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
if '?page=' not in path:
|
if '?page=' not in path:
|
||||||
search_path = path
|
search_path = path
|
||||||
# get a page of following, not the summary
|
# get a page of following, not the summary
|
||||||
|
path = path.replace('/moved', '/moved?page=' +
|
||||||
|
str(page_number))
|
||||||
following = \
|
following = \
|
||||||
get_moved_feed(base_dir, domain, port, path,
|
get_moved_feed(base_dir, domain, port, path,
|
||||||
http_prefix, authorized,
|
http_prefix, authorized,
|
||||||
|
|
|
@ -46,9 +46,6 @@ def get_moved_accounts(base_dir: str, nickname: str, domain: str,
|
||||||
refollow_dict[prev_handle] = new_handle
|
refollow_dict[prev_handle] = new_handle
|
||||||
ctr = ctr + 1
|
ctr = ctr + 1
|
||||||
|
|
||||||
print(str(ctr) + ' moved accounts')
|
|
||||||
print('moved_dict: ' + str(refollow_dict))
|
|
||||||
|
|
||||||
follow_filename = \
|
follow_filename = \
|
||||||
acct_dir(base_dir, nickname, domain) + '/' + filename
|
acct_dir(base_dir, nickname, domain) + '/' + filename
|
||||||
follow_str = ''
|
follow_str = ''
|
||||||
|
@ -65,7 +62,6 @@ def get_moved_accounts(base_dir: str, nickname: str, domain: str,
|
||||||
for handle in follow_list:
|
for handle in follow_list:
|
||||||
if refollow_dict.get(handle):
|
if refollow_dict.get(handle):
|
||||||
result[handle] = refollow_dict[handle]
|
result[handle] = refollow_dict[handle]
|
||||||
print('moved_dict 2: ' + str(result))
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue