Features timeline

merge-requests/30/head
Bob Mottram 2020-11-27 15:05:22 +00:00
parent 2091c44731
commit bc026da06d
1 changed files with 7 additions and 2 deletions

View File

@ -512,6 +512,11 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
# show the posts # show the posts
itemCtr = 0 itemCtr = 0
if timelineJson: if timelineJson:
# if this is the features timeline then use the news actor
timelineNickname = nickname
if boxName == 'tlfeatures':
timelineNickname = 'news'
# if this is the media timeline then add an extra gallery container # if this is the media timeline then add an extra gallery container
if boxName == 'tlmedia': if boxName == 'tlmedia':
if pageNumber > 1: if pageNumber > 1:
@ -567,7 +572,7 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str,
iconsPath, translate, pageNumber, iconsPath, translate, pageNumber,
baseDir, session, wfRequest, baseDir, session, wfRequest,
personCache, personCache,
nickname, domain, port, timelineNickname, domain, port,
item, None, True, item, None, True,
allowDeletion, allowDeletion,
httpPrefix, projectVersion, httpPrefix, projectVersion,
@ -1025,7 +1030,7 @@ def htmlInboxFeatures(cssCache: {}, defaultTimeline: str,
recentPostsCache, maxRecentPosts, recentPostsCache, maxRecentPosts,
translate, pageNumber, translate, pageNumber,
itemsPerPage, session, baseDir, wfRequest, personCache, itemsPerPage, session, baseDir, wfRequest, personCache,
'news', domain, port, inboxJson, 'tlfeatures', nickname, domain, port, inboxJson, 'tlfeatures',
allowDeletion, httpPrefix, projectVersion, False, allowDeletion, httpPrefix, projectVersion, False,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,