From 7f8e050399ef090d38f7151eda99a400db2de402 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 27 Nov 2020 10:49:21 +0000 Subject: [PATCH] Blog edits are saved to the news actor --- daemon.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/daemon.py b/daemon.py index fd463eab..57a86e07 100644 --- a/daemon.py +++ b/daemon.py @@ -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: