mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
a4109e5de5
commit
7d44e9d447
|
@ -14376,6 +14376,7 @@ class PubServer(BaseHTTPRequestHandler):
|
||||||
get_moved_feed(base_dir, domain, port, path,
|
get_moved_feed(base_dir, domain, port, path,
|
||||||
http_prefix, authorized, FOLLOWS_PER_PAGE)
|
http_prefix, authorized, FOLLOWS_PER_PAGE)
|
||||||
if following:
|
if following:
|
||||||
|
print('DEBUG: get_moved_feed ' + str(get_moved_feed))
|
||||||
if self._request_http():
|
if self._request_http():
|
||||||
page_number = 1
|
page_number = 1
|
||||||
if '?page=' not in path:
|
if '?page=' not in path:
|
||||||
|
|
|
@ -62,9 +62,9 @@ def get_moved_feed(base_dir: str, domain: str, port: int, path: str,
|
||||||
follows_per_page=12) -> {}:
|
follows_per_page=12) -> {}:
|
||||||
"""Returns the moved accounts feed from GET requests.
|
"""Returns the moved accounts feed from GET requests.
|
||||||
"""
|
"""
|
||||||
# Show a small number of follows to non-authorized viewers
|
# Don't show moved accounts to non-authorized viewers
|
||||||
if not authorized:
|
if not authorized:
|
||||||
follows_per_page = 6
|
follows_per_page = 0
|
||||||
|
|
||||||
if '/moved' not in path:
|
if '/moved' not in path:
|
||||||
return None
|
return None
|
||||||
|
@ -116,8 +116,7 @@ def get_moved_feed(base_dir: str, domain: str, port: int, path: str,
|
||||||
'first': first_str,
|
'first': first_str,
|
||||||
'id': id_str,
|
'id': id_str,
|
||||||
'totalItems': total_str,
|
'totalItems': total_str,
|
||||||
'type': 'OrderedCollection',
|
'type': 'OrderedCollection'
|
||||||
'orderedItems': []
|
|
||||||
}
|
}
|
||||||
return following
|
return following
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue