Blogs timeline

merge-requests/6/head
Bob Mottram 2020-02-24 14:49:43 +00:00
parent 0bd778d553
commit 1f884f010d
2 changed files with 6 additions and 8 deletions

View File

@ -2910,7 +2910,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.port, \
self.path, \
self.server.httpPrefix, \
maxPostsInBlogsFeed, 'tlblogs', \
maxPostsInBlogsFeed,'tlblogs', \
True,self.server.ocapAlways)
if not inboxBlogsFeed:
inboxBlogsFeed=[]

View File

@ -1956,13 +1956,6 @@ def createInbox(recentPostsCache: {}, \
session,baseDir,'inbox',nickname,domain,port,httpPrefix, \
itemsPerPage,headerOnly,True,ocapAlways,pageNumber)
def createBlogsTimeline(recentPostsCache: {}, \
session,baseDir: str,nickname: str,domain: str,port: int,httpPrefix: str, \
itemsPerPage: int,headerOnly: bool,ocapAlways: bool,pageNumber=None) -> {}:
return createBoxIndexed(recentPostsCache, \
session,baseDir,'tlblogs',nickname,domain,port,httpPrefix, \
itemsPerPage,headerOnly,True,ocapAlways,pageNumber)
def createBookmarksTimeline(session,baseDir: str,nickname: str,domain: str,port: int,httpPrefix: str, \
itemsPerPage: int,headerOnly: bool,ocapAlways: bool,pageNumber=None) -> {}:
return createBoxIndexed({},session,baseDir,'tlbookmarks',nickname,domain,port,httpPrefix, \
@ -1978,6 +1971,11 @@ def createRepliesTimeline(session,baseDir: str,nickname: str,domain: str,port: i
return createBoxIndexed({},session,baseDir,'tlreplies',nickname,domain,port,httpPrefix, \
itemsPerPage,headerOnly,True,ocapAlways,pageNumber)
def createBlogsTimeline(session,baseDir: str,nickname: str,domain: str,port: int,httpPrefix: str, \
itemsPerPage: int,headerOnly: bool,ocapAlways: bool,pageNumber=None) -> {}:
return createBoxIndexed({},session,baseDir,'tlblogs',nickname,domain,port,httpPrefix, \
itemsPerPage,headerOnly,True,ocapAlways,pageNumber)
def createMediaTimeline(session,baseDir: str,nickname: str,domain: str,port: int,httpPrefix: str, \
itemsPerPage: int,headerOnly: bool,ocapAlways: bool,pageNumber=None) -> {}:
return createBoxIndexed({},session,baseDir,'tlmedia',nickname,domain,port,httpPrefix, \