Refresh newswire after changing post to newsire status for account

merge-requests/17/merge
Bob Mottram 2021-02-13 10:05:37 +00:00
parent 5ef5174fee
commit d3abc360e3
1 changed files with 2 additions and 0 deletions

View File

@ -1948,12 +1948,14 @@ class PubServer(BaseHTTPRequestHandler):
if postsToNews == 'on':
if os.path.isfile(newswireBlockedFilename):
os.remove(newswireBlockedFilename)
refreshNewswire(self.server.baseDir)
else:
if os.path.isdir(accountDir):
noNewswireFile = open(newswireBlockedFilename, "w+")
if noNewswireFile:
noNewswireFile.write('\n')
noNewswireFile.close()
refreshNewswire(self.server.baseDir)
usersPathStr = \
usersPath + '/' + self.server.defaultTimeline + \
'?page=' + str(pageNumber)