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)
|
None,None,None)
|
||||||
if not postJsonObject:
|
if not postJsonObject:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
# who is this report going to?
|
||||||
|
toNickname=toUrl.split('/users/')[1]
|
||||||
handle=toNickname+'@'+domain
|
handle=toNickname+'@'+domain
|
||||||
|
|
||||||
# update the inbox index with the report filename
|
# update the inbox index with the report filename
|
||||||
|
@ -1026,7 +1029,6 @@ def createReportPost(baseDir: str,
|
||||||
|
|
||||||
# save a notification file so that the moderator
|
# save a notification file so that the moderator
|
||||||
# knows something new has appeared
|
# knows something new has appeared
|
||||||
toNickname=toUrl.split('/users/')[1]
|
|
||||||
newReportFile=baseDir+'/accounts/'+handle+'/.newReport'
|
newReportFile=baseDir+'/accounts/'+handle+'/.newReport'
|
||||||
if os.path.isfile(newReportFile):
|
if os.path.isfile(newReportFile):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue