json extension

main
Bob Mottram 2024-10-23 13:33:44 +01:00
parent ca995cd50d
commit 90471ccb26
2 changed files with 3 additions and 2 deletions

View File

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

View File

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