File storing the last time something was posted

merge-requests/3/merge
Bob Mottram 2019-11-13 15:26:40 +00:00
parent d0c1ff3603
commit 0198b09782
1 changed files with 9 additions and 0 deletions

View File

@ -2834,6 +2834,15 @@ class PubServer(BaseHTTPRequestHandler):
else:
return -1
lastUsedFilename=self.server.baseDir+'/accounts/'+nickname+'@'+self.server.domain+'/.lastUsed'
try:
lastUsedFile=open(lastUsedFilename,'w')
if lastUsedFile:
lastUsedFile.write(str(int(time.time())))
lastUsedFile.close()
except:
pass
if postType=='newunlisted':
messageJson= \
createUnlistedPost(self.server.baseDir, \