main
Bob Mottram 2025-11-17 18:20:19 +00:00
parent a33c94fe8c
commit 0869b6ece8
2 changed files with 10 additions and 8 deletions

View File

@ -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))

View File

@ -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