From cb97b5ceb2f81bd31ea65003e512c3da73efb648 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 16 Nov 2019 18:14:00 +0000 Subject: [PATCH] Get nickname --- posts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/posts.py b/posts.py index 5fa9b333..59c6fd41 100644 --- a/posts.py +++ b/posts.py @@ -1012,6 +1012,9 @@ def createReportPost(baseDir: str, None,None,None) if not postJsonObject: continue + + # who is this report going to? + toNickname=toUrl.split('/users/')[1] handle=toNickname+'@'+domain # update the inbox index with the report filename @@ -1026,7 +1029,6 @@ def createReportPost(baseDir: str, # save a notification file so that the moderator # knows something new has appeared - toNickname=toUrl.split('/users/')[1] newReportFile=baseDir+'/accounts/'+handle+'/.newReport' if os.path.isfile(newReportFile): continue