mirror of https://gitlab.com/bashrc2/epicyon
debug
parent
a33c94fe8c
commit
0869b6ece8
6
posts.py
6
posts.py
|
|
@ -5419,14 +5419,14 @@ def _expire_posts_for_person(http_prefix: str, nickname: str, domain: str,
|
|||
continue
|
||||
if is_dm(post_json_object):
|
||||
continue
|
||||
print('DEBUG: published_str ' + published_str + ' ' +
|
||||
if debug:
|
||||
print('DEBUG: deleting expired post ' + published_str + ' ' +
|
||||
str(max_age_days))
|
||||
debug = True
|
||||
if delete_post(base_dir, http_prefix, nickname, domain,
|
||||
full_filename, debug, recent_posts_cache, True):
|
||||
expired_post_count += 1
|
||||
debug = False
|
||||
else:
|
||||
if debug:
|
||||
print('DEBUG: retained published_str ' + published_str + ' ' +
|
||||
str(max_age_days))
|
||||
|
||||
|
|
|
|||
2
utils.py
2
utils.py
|
|
@ -2229,6 +2229,7 @@ def delete_post(base_dir: str, http_prefix: str,
|
|||
# i.e. DMs should only be removed if they are manually deleted
|
||||
if not manual:
|
||||
if _is_remote_dm(domain, post_json_object):
|
||||
if debug:
|
||||
print('DEBUG: remote DM not deleted ' + post_filename)
|
||||
return False
|
||||
|
||||
|
|
@ -2241,6 +2242,7 @@ def delete_post(base_dir: str, http_prefix: str,
|
|||
# don't remove replies to blog posts
|
||||
if _is_reply_to_blog_post(base_dir, nickname, domain,
|
||||
post_json_object):
|
||||
if debug:
|
||||
print('DEBUG: reply to blog post not deleted ' + post_filename)
|
||||
return False
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue