mirror of https://gitlab.com/bashrc2/epicyon
debug
parent
dbc18d7964
commit
3eeb2bd69d
3
posts.py
3
posts.py
|
|
@ -5409,9 +5409,9 @@ def _expire_posts_for_person(http_prefix: str, nickname: str, domain: str,
|
||||||
if '"' not in published_str:
|
if '"' not in published_str:
|
||||||
continue
|
continue
|
||||||
published_str = published_str.split('"')[1]
|
published_str = published_str.split('"')[1]
|
||||||
print('DEBUG: published_str ' + published_str)
|
|
||||||
if not published_str.endswith('Z'):
|
if not published_str.endswith('Z'):
|
||||||
continue
|
continue
|
||||||
|
print('DEBUG: published_str ' + published_str + ' ' + str(max_age_days))
|
||||||
# get time difference
|
# get time difference
|
||||||
if not valid_post_date(published_str, max_age_days, debug):
|
if not valid_post_date(published_str, max_age_days, debug):
|
||||||
if keep_dms:
|
if keep_dms:
|
||||||
|
|
@ -5419,6 +5419,7 @@ def _expire_posts_for_person(http_prefix: str, nickname: str, domain: str,
|
||||||
if not post_json_object:
|
if not post_json_object:
|
||||||
continue
|
continue
|
||||||
if is_dm(post_json_object):
|
if is_dm(post_json_object):
|
||||||
|
print('DEBUG: is DM')
|
||||||
continue
|
continue
|
||||||
delete_post(base_dir, http_prefix, nickname, domain,
|
delete_post(base_dir, http_prefix, nickname, domain,
|
||||||
full_filename, debug, recent_posts_cache, True)
|
full_filename, debug, recent_posts_cache, True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue