Test without html generation

main
Bob Mottram 2020-10-08 13:37:14 +01:00
parent aa84d0081f
commit 12b37b81d3
1 changed files with 16 additions and 15 deletions

View File

@ -73,11 +73,12 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
if os.path.isfile(filename): if os.path.isfile(filename):
# if a local post exists as html then change the link # if a local post exists as html then change the link
# to the local one # to the local one
htmlFilename = \ #htmlFilename = \
baseDir + '/accounts/news@' + domain + \ # baseDir + '/accounts/news@' + domain + \
'/postcache/' + newPostId.replace('/', '#') + '.html' # '/postcache/' + newPostId.replace('/', '#') + '.html'
if os.path.isfile(htmlFilename): #if os.path.isfile(htmlFilename):
newswire[originalDateStr][1] = '/@news/' + statusNumber newswire[originalDateStr][1] = \
'/users/news/statuses/' + statusNumber
# don't create the post if it already exists # don't create the post if it already exists
continue continue
@ -128,16 +129,16 @@ def convertRSStoActivityPub(baseDir: str, httpPrefix: str,
# convert json to html # convert json to html
iconsDir = getIconsDir(baseDir) iconsDir = getIconsDir(baseDir)
pageNumber = -999 pageNumber = -999
avatarUrl = None #individualPostAsHtml(True, recentPostsCache, maxRecentPosts,
individualPostAsHtml(True, recentPostsCache, maxRecentPosts, # iconsDir, translate, pageNumber,
iconsDir, translate, pageNumber, # baseDir, session, cachedWebfingers,
baseDir, session, cachedWebfingers, # personCache,
personCache, # 'news', domain, port, blog,
'news', domain, port, blog, # None, True, False,
avatarUrl, True, False, # httpPrefix, __version__, 'outbox',
httpPrefix, __version__, 'outbox', # True, True, True, False, True)
True, True, True, False, True) newswire[originalDateStr][1] = \
newswire[originalDateStr][1] = '/@news/' + statusNumber '/users/news/statuses/' + statusNumber
def runNewswireDaemon(baseDir: str, httpd, def runNewswireDaemon(baseDir: str, httpd,