From 1d46483996cd1c5bebfb535a4208e5fd0169ff32 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 9 Apr 2022 13:14:04 +0100 Subject: [PATCH] Debug for receiving post edits --- inbox.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inbox.py b/inbox.py index ff00fecd9..bb1fa70c2 100644 --- a/inbox.py +++ b/inbox.py @@ -3706,6 +3706,10 @@ def _inbox_after_initial(server, person_cache, post_json_object, debug, signing_priv_key_pem) + if json_obj.get('updated') and json_obj.get('id'): + updated_post_id = remove_id_ending(json_obj['id']) + print('Receiving edit to post ' + updated_post_id) + # save the post to file if save_json(post_json_object, destination_filename): if mitm: