Blog edits are saved to the news actor

main
Bob Mottram 2020-11-27 10:49:21 +00:00
parent 020c7a1314
commit 7f8e050399
1 changed files with 7 additions and 0 deletions

View File

@ -11129,6 +11129,13 @@ class PubServer(BaseHTTPRequestHandler):
replaceYouTube(postJsonObject,
self.server.YTReplacementDomain)
saveJson(postJsonObject, postFilename)
# also save to the news actor
if nickname != 'news':
postFilename = \
postFilename.replace('#users#' +
nickname + '#',
'#users#news#')
saveJson(postJsonObject, postFilename)
print('Edited blog post, resaved ' + postFilename)
return 1
else: