forked from indymedia/epicyon
Get nickname
parent
8ea168c5ab
commit
cb97b5ceb2
4
posts.py
4
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
|
||||
|
|
Loading…
Reference in New Issue