Features timeline

main
Bob Mottram 2020-11-27 14:17:00 +00:00
parent 750a63523b
commit 2091c44731
2 changed files with 8 additions and 2 deletions

View File

@ -2888,7 +2888,9 @@ def addPostStringToTimeline(postStr: str, boxname: str,
elif boxname == 'tlreplies': elif boxname == 'tlreplies':
if boxActor not in postStr: if boxActor not in postStr:
return False return False
elif boxname == 'tlblogs' or boxname == 'tlnews': elif (boxname == 'tlblogs' or
boxname == 'tlnews' or
boxname == 'tlfeatures'):
if '"Create"' not in postStr: if '"Create"' not in postStr:
return False return False
if '"Article"' not in postStr: if '"Article"' not in postStr:
@ -2927,6 +2929,7 @@ def createBoxIndexed(recentPostsCache: {},
if boxname != 'inbox' and boxname != 'dm' and \ if boxname != 'inbox' and boxname != 'dm' and \
boxname != 'tlreplies' and boxname != 'tlmedia' and \ boxname != 'tlreplies' and boxname != 'tlmedia' and \
boxname != 'tlblogs' and boxname != 'tlnews' and \ boxname != 'tlblogs' and boxname != 'tlnews' and \
boxname != 'tlfeatures' and \
boxname != 'outbox' and boxname != 'tlbookmarks' and \ boxname != 'outbox' and boxname != 'tlbookmarks' and \
boxname != 'bookmarks' and \ boxname != 'bookmarks' and \
boxname != 'tlevents': boxname != 'tlevents':
@ -2938,6 +2941,9 @@ def createBoxIndexed(recentPostsCache: {},
if boxname == "tlbookmarks": if boxname == "tlbookmarks":
boxname = "bookmarks" boxname = "bookmarks"
indexBoxName = boxname indexBoxName = boxname
elif boxname == "tlfeatures":
boxname = "tlblogs"
indexBoxName = boxname
if port: if port:
if port != 80 and port != 443: if port != 80 and port != 443:

View File

@ -1025,7 +1025,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, 'tlblogs', 'news', domain, port, inboxJson, 'tlfeatures',
allowDeletion, httpPrefix, projectVersion, False, allowDeletion, httpPrefix, projectVersion, False,
minimal, YTReplacementDomain, minimal, YTReplacementDomain,
showPublishedDateOnly, showPublishedDateOnly,