forked from indymedia/epicyon
Remove activity
parent
83d21e4de6
commit
ffc949406d
5
inbox.py
5
inbox.py
|
@ -1417,10 +1417,7 @@ def inboxUpdateCalendar(baseDir: str,handle: str,postJsonObject: {}) -> None:
|
||||||
if not os.path.isdir(calendarPath+'/'+str(eventYear)):
|
if not os.path.isdir(calendarPath+'/'+str(eventYear)):
|
||||||
os.mkdir(calendarPath+'/'+str(eventYear))
|
os.mkdir(calendarPath+'/'+str(eventYear))
|
||||||
calendarFilename=calendarPath+'/'+str(eventYear)+'/'+str(eventMonthNumber)+'.txt'
|
calendarFilename=calendarPath+'/'+str(eventYear)+'/'+str(eventMonthNumber)+'.txt'
|
||||||
postId=postJsonObject['id']
|
postId=postJsonObject['id'].replace('/activity','').replace('/','#')
|
||||||
if '#' in postId:
|
|
||||||
postId=postId.split('#')[0]
|
|
||||||
postId=postId.replace('/','#')
|
|
||||||
if os.path.isfile(calendarFilename):
|
if os.path.isfile(calendarFilename):
|
||||||
if postId in open(calendarFilename).read():
|
if postId in open(calendarFilename).read():
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue