From 3c771117961b94e85ab7e527435df1ddb37ebd26 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 29 Sep 2019 10:20:01 +0100 Subject: [PATCH] Tidying --- inbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inbox.py b/inbox.py index 57c2c4579..89fdbd4f6 100644 --- a/inbox.py +++ b/inbox.py @@ -967,14 +967,14 @@ def receiveAnnounce(session,handle: str,baseDir: str, \ if not os.path.isdir(baseDir+'/accounts/'+handle): print('DEBUG: unknown recipient of announce - '+handle) # is this post in the outbox of the person? - postFilename=locatePost(baseDir,handle.split('@')[0],handle.split('@')[1],messageJson['object']) + nickname=handle.split('@')[0] + postFilename=locatePost(baseDir,nickname,handle.split('@')[1],messageJson['object']) if not postFilename: if debug: print('DEBUG: announce post not found in inbox or outbox') print(messageJson['object']) return True updateAnnounceCollection(postFilename,messageJson['actor'],debug) - nickname=handle.split('@')[0] downloadAnnounce(session,baseDir,httpPrefix,nickname,domain,messageJson,__version__) if debug: print('DEBUG: announced/repeated post found in inbox')