diff --git a/daemon.py b/daemon.py index 3f50fcfc..97c25512 100644 --- a/daemon.py +++ b/daemon.py @@ -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, \