mirror of https://gitlab.com/bashrc2/epicyon
Announced post could be media without text content
parent
adf98ebf93
commit
6aecffd75c
2
posts.py
2
posts.py
|
@ -5282,7 +5282,7 @@ def download_announce(session, base_dir: str, http_prefix: str,
|
||||||
base_dir, nickname, domain, post_id,
|
base_dir, nickname, domain, post_id,
|
||||||
recent_posts_cache)
|
recent_posts_cache)
|
||||||
return None
|
return None
|
||||||
if not announced_json.get('content'):
|
if 'content' not in announced_json:
|
||||||
print('WARN: announced post does not have content ' +
|
print('WARN: announced post does not have content ' +
|
||||||
str(announced_json))
|
str(announced_json))
|
||||||
_reject_announce(announce_filename,
|
_reject_announce(announce_filename,
|
||||||
|
|
Loading…
Reference in New Issue