Replace youtube in edited blog posts

main
Bob Mottram 2020-03-01 21:11:01 +00:00
parent 21ce89b764
commit d0c86f510d
1 changed files with 3 additions and 0 deletions

View File

@ -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