From eacef272d3c4196de8a5b4decffbac6a0ed9b796 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Nov 2019 10:18:59 +0000 Subject: [PATCH] Remove any trailing activity --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 23c3ebe8..ed86d73b 100644 --- a/utils.py +++ b/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 boxName='inbox' - postUrl=postUrl.replace('/','#') + postUrl=postUrl.replace('/','#').replace('/activity','') postFilename=baseDir+'/accounts/'+nickname+'@'+domain+'/'+boxName+'/'+postUrl+'.'+extension if not os.path.isfile(postFilename): boxName='outbox'