diff --git a/posts.py b/posts.py index 3e6e9001..b04b65cc 100644 --- a/posts.py +++ b/posts.py @@ -1236,8 +1236,9 @@ def sendSignedJson(postJsonObject: {},session,baseDir: str, \ print("inboxUrl: "+str(inboxUrl)) print("toPersonId: "+str(toPersonId)) print("sharedInboxUrl: "+str(sharedInboxUrl)) - if inboxUrl.endswith('/actor/inbox'): - inboxUrl=sharedInboxUrl + if inboxUrl: + if inboxUrl.endswith('/actor/inbox'): + inboxUrl=sharedInboxUrl if not inboxUrl: if debug: