From d0c86f510d91e94cd45f593f5c6315735c25ad54 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Mar 2020 21:11:01 +0000 Subject: [PATCH] Replace youtube in edited blog posts --- daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/daemon.py b/daemon.py index 778a4e06..7f9dd90d 100644 --- a/daemon.py +++ b/daemon.py @@ -88,6 +88,8 @@ from auth import authorizeBasic from auth import storeBasicCredentials from threads import threadWithTrace from threads import removeDormantThreads +from media import replaceYouTube +from media import attachMedia from media import getMediaPath from media import createMediaDirs from delete import outboxDelete @@ -3979,6 +3981,7 @@ class PubServer(BaseHTTPRequestHandler): imgDescription, \ self.server.useBlurhash) + replaceYouTube(postJsonObject) saveJson(postJsonObject,postFilename) print('Edited blog post, resaved '+postFilename) return 1