From 11073cb1f7b043587b06d44d5117e521bc2fd2ff Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 21 Oct 2019 11:33:45 +0100 Subject: [PATCH] Tidying --- inbox.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/inbox.py b/inbox.py index 0de66c89..5add1566 100644 --- a/inbox.py +++ b/inbox.py @@ -1045,10 +1045,6 @@ def receiveAnnounce(session,handle: str,isGroup: bool,baseDir: str, \ if debug: print('DEBUG: "users", "channel" or "profile" missing in '+messageJson['type']) return False - #if '/statuses/' not in messageJson['object']: - # if debug: - # print('DEBUG: "statuses" missing from object in '+messageJson['type']) - # return False objectDomain=messageJson['object'].replace('https://','').replace('http://','').replace('dat://','') if '/' in objectDomain: objectDomain=objectDomain.split('/')[0] @@ -1136,10 +1132,6 @@ def receiveUndoAnnounce(session,handle: str,isGroup: bool,baseDir: str, \ if debug: print('DEBUG: "users" or "profile" missing from actor in '+messageJson['type']+' announce') return False - #if '/statuses/' not in messageJson['object']: - # if debug: - # print('DEBUG: "statuses" missing from object in '+messageJson['type']+' announce') - # return False if not os.path.isdir(baseDir+'/accounts/'+handle): print('DEBUG: unknown recipient of undo announce - '+handle) # if this post in the outbox of the person?