From 30a3de6b0289ae4730a1b45b7bcea43ff913058f Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 23 Oct 2024 15:13:02 +0100 Subject: [PATCH] index filename --- utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils.py b/utils.py index 5dc1a35f3..70c2ebf55 100644 --- a/utils.py +++ b/utils.py @@ -3584,6 +3584,9 @@ def reject_post_id(base_dir: str, nickname: str, domain: str, index_file = \ acct_dir(base_dir, nickname, domain) + '/inbox.index' if not post_url: + index_filename = post_filename + if '/' in post_filename: + index_filename = post_filename.split('/')[-1] post_url = remove_eol(index_filename) post_url = post_url.replace('.json', '').strip() post_url2 = post_url.replace('/', '#') + '.json'