silo replacements when creating html

merge-requests/30/head
Bob Mottram 2021-09-18 20:17:10 +01:00
parent b6439b80d8
commit 443c9599bf
1 changed files with 4 additions and 1 deletions

View File

@ -190,6 +190,8 @@ def _inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
boxname = 'inbox' boxname = 'inbox'
notDM = not isDM(postJsonObject) notDM = not isDM(postJsonObject)
YTReplacementDomain = getConfigParam(baseDir, 'youtubedomain')
twitterReplacementDomain = getConfigParam(baseDir, 'twitterdomain')
individualPostAsHtml(signingPrivateKeyPem, individualPostAsHtml(signingPrivateKeyPem,
True, recentPostsCache, maxRecentPosts, True, recentPostsCache, maxRecentPosts,
translate, pageNumber, translate, pageNumber,
@ -197,7 +199,8 @@ def _inboxStorePostToHtmlCache(recentPostsCache: {}, maxRecentPosts: int,
personCache, personCache,
nickname, domain, port, postJsonObject, nickname, domain, port, postJsonObject,
avatarUrl, True, allowDeletion, avatarUrl, True, allowDeletion,
httpPrefix, __version__, boxname, None, None, httpPrefix, __version__, boxname,
YTReplacementDomain, twitterReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,
peertubeInstances, allowLocalNetworkAccess, peertubeInstances, allowLocalNetworkAccess,
themeName, systemLanguage, maxLikeCount, themeName, systemLanguage, maxLikeCount,