From 9d6273277ff809b8df546d37aa4e14194d5d7342 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 9 Jun 2024 11:47:37 +0100 Subject: [PATCH] Comments --- inbox.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inbox.py b/inbox.py index 3aeed7f6a..67c4931c5 100644 --- a/inbox.py +++ b/inbox.py @@ -1715,10 +1715,12 @@ def _receive_edit_to_post(recent_posts_cache: {}, message_json: {}, post_history_json = {} if os.path.isfile(post_history_filename): post_history_json = load_json(post_history_filename, 1) + # get the updated or published date if post_json_object['object'].get('updated'): published_str = post_json_object['object']['updated'] else: published_str = post_json_object['object']['published'] + # add to the history for this date if not post_history_json.get(published_str): post_history_json[published_str] = post_json_object save_json(post_history_json, post_history_filename)