Bob Mottram 2 months ago
parent
commit
bddd03beec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils.py

+ 1 - 1
utils.py

@@ -246,7 +246,7 @@ def locatePost(baseDir: str,nickname: str,domain: str,postUrl: str,replies=False
 
     # if this post in the shared inbox?
     handle='inbox@'+domain
-    postUrl=postUrl.replace('/','#').replace('/activity','')
+    postUrl=postUrl.replace('/','#').replace('/activity','').strip()
 
     boxName='inbox'
     postFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/'+boxName+'/'+postUrl+'.'+extension