mirror of https://gitlab.com/bashrc2/epicyon
Check that user feed exists
parent
fd5cfa4016
commit
afb8aabf3e
14
posts.py
14
posts.py
|
@ -530,11 +530,12 @@ def _get_posts(session, outbox_url: str, max_posts: int,
|
|||
session, outbox_url, as_header,
|
||||
project_version, http_prefix,
|
||||
origin_domain, debug)
|
||||
for item in user_feed:
|
||||
result.append(item)
|
||||
i += 1
|
||||
if i == max_posts:
|
||||
break
|
||||
if user_feed:
|
||||
for item in user_feed:
|
||||
result.append(item)
|
||||
i += 1
|
||||
if i == max_posts:
|
||||
break
|
||||
pprint(result)
|
||||
return None
|
||||
|
||||
|
@ -813,6 +814,9 @@ def _get_posts_for_blocked_domains(base_dir: str,
|
|||
user_feed = parse_user_feed(signing_priv_key_pem,
|
||||
session, outbox_url, as_header,
|
||||
project_version, http_prefix, domain, debug)
|
||||
if not user_feed:
|
||||
return blocked_posts
|
||||
|
||||
for item in user_feed:
|
||||
i += 1
|
||||
if i > max_posts:
|
||||
|
|
Loading…
Reference in New Issue