mirror of https://gitlab.com/bashrc2/epicyon
Check that user feed exists
parent
fd5cfa4016
commit
afb8aabf3e
4
posts.py
4
posts.py
|
@ -530,6 +530,7 @@ def _get_posts(session, outbox_url: str, max_posts: int,
|
|||
session, outbox_url, as_header,
|
||||
project_version, http_prefix,
|
||||
origin_domain, debug)
|
||||
if user_feed:
|
||||
for item in user_feed:
|
||||
result.append(item)
|
||||
i += 1
|
||||
|
@ -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