From 90471ccb2692771fe1e1a533bd83a4bc7728e216 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2024 13:33:44 +0100 Subject: [PATCH] json extension --- posts.py | 3 ++- utils.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index b8795cf68..b8d5f34df 100644 --- a/posts.py +++ b/posts.py @@ -4885,7 +4885,8 @@ def _create_box_items(base_dir: str, print('REJECT: rejected post in timeline ' + boxname + ' ' + post_url + ' ' + full_post_filename) - remove_post_from_index(post_url, False, index_filename) + remove_post_from_index(post_url + '.json', False, + index_filename) continue if _add_post_to_timeline(full_post_filename, boxname, diff --git a/utils.py b/utils.py index cf9a590f9..8d889dd16 100644 --- a/utils.py +++ b/utils.py @@ -3582,7 +3582,7 @@ def reject_post_id(base_dir: str, nickname: str, domain: str, # if the post is in the inbox index then remove it index_file = \ acct_dir(base_dir, nickname, domain) + '/inbox.index' - remove_post_from_index(post_url, debug, index_file) + remove_post_from_index(post_url + '.json', debug, index_file) def load_translations_from_file(base_dir: str, language: str) -> ({}, str):