mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Additional timeline steadying
							parent
							
								
									3e0255531a
								
							
						
					
					
						commit
						1c3caeed20
					
				
							
								
								
									
										6
									
								
								blog.py
								
								
								
								
							
							
						
						
									
										6
									
								
								blog.py
								
								
								
								
							| 
						 | 
				
			
			@ -542,7 +542,7 @@ def html_blog_page(authorized: bool, session,
 | 
			
		|||
    timeline_json = \
 | 
			
		||||
        create_blogs_timeline(base_dir,
 | 
			
		||||
                              nickname, domain, port, http_prefix,
 | 
			
		||||
                              no_of_items, False, page_number)
 | 
			
		||||
                              no_of_items, False, page_number, '')
 | 
			
		||||
 | 
			
		||||
    if not timeline_json:
 | 
			
		||||
        return blog_str + html_footer()
 | 
			
		||||
| 
						 | 
				
			
			@ -631,7 +631,7 @@ def html_blog_page_rss2(base_dir: str, http_prefix: str, translate: {},
 | 
			
		|||
                                          nickname, domain, port,
 | 
			
		||||
                                          http_prefix,
 | 
			
		||||
                                          no_of_items, False,
 | 
			
		||||
                                          page_number)
 | 
			
		||||
                                          page_number, '')
 | 
			
		||||
 | 
			
		||||
    if not timeline_json:
 | 
			
		||||
        if include_header:
 | 
			
		||||
| 
						 | 
				
			
			@ -670,7 +670,7 @@ def html_blog_page_rss3(base_dir: str, http_prefix: str,
 | 
			
		|||
    timeline_json = \
 | 
			
		||||
        create_blogs_timeline(base_dir,
 | 
			
		||||
                              nickname, domain, port, http_prefix,
 | 
			
		||||
                              no_of_items, False, page_number)
 | 
			
		||||
                              no_of_items, False, page_number, '')
 | 
			
		||||
 | 
			
		||||
    if not timeline_json:
 | 
			
		||||
        return blog_rss3
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1036,7 +1036,8 @@ def person_box_json(recent_posts_cache: {},
 | 
			
		|||
        return create_dm_timeline(recent_posts_cache,
 | 
			
		||||
                                  base_dir, nickname, domain, port,
 | 
			
		||||
                                  http_prefix,
 | 
			
		||||
                                  no_of_items, header_only, page_number)
 | 
			
		||||
                                  no_of_items, header_only, page_number,
 | 
			
		||||
                                  first_post_id)
 | 
			
		||||
    if boxname in ('tlbookmarks', 'bookmarks'):
 | 
			
		||||
        return create_bookmarks_timeline(base_dir, nickname, domain,
 | 
			
		||||
                                         port, http_prefix,
 | 
			
		||||
| 
						 | 
				
			
			@ -1047,7 +1048,8 @@ def person_box_json(recent_posts_cache: {},
 | 
			
		|||
                                       base_dir, nickname, domain,
 | 
			
		||||
                                       port, http_prefix,
 | 
			
		||||
                                       no_of_items, header_only,
 | 
			
		||||
                                       page_number)
 | 
			
		||||
                                       page_number,
 | 
			
		||||
                                       first_post_id)
 | 
			
		||||
    if boxname == 'tlmedia':
 | 
			
		||||
        return create_media_timeline(base_dir, nickname, domain, port,
 | 
			
		||||
                                     http_prefix, no_of_items, header_only,
 | 
			
		||||
| 
						 | 
				
			
			@ -1064,7 +1066,7 @@ def person_box_json(recent_posts_cache: {},
 | 
			
		|||
    if boxname == 'tlblogs':
 | 
			
		||||
        return create_blogs_timeline(base_dir, nickname, domain, port,
 | 
			
		||||
                                     http_prefix, no_of_items, header_only,
 | 
			
		||||
                                     page_number)
 | 
			
		||||
                                     page_number, first_post_id)
 | 
			
		||||
    if boxname == 'outbox':
 | 
			
		||||
        return create_outbox(base_dir, nickname, domain, port,
 | 
			
		||||
                             http_prefix,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										16
									
								
								posts.py
								
								
								
								
							
							
						
						
									
										16
									
								
								posts.py
								
								
								
								
							| 
						 | 
				
			
			@ -3612,31 +3612,35 @@ def create_bookmarks_timeline(base_dir: str,
 | 
			
		|||
def create_dm_timeline(recent_posts_cache: {},
 | 
			
		||||
                       base_dir: str, nickname: str, domain: str,
 | 
			
		||||
                       port: int, http_prefix: str, items_per_page: int,
 | 
			
		||||
                       header_only: bool, page_number: int) -> {}:
 | 
			
		||||
                       header_only: bool, page_number: int,
 | 
			
		||||
                       first_post_id: str) -> {}:
 | 
			
		||||
    return _create_box_indexed(recent_posts_cache,
 | 
			
		||||
                               base_dir, 'dm', nickname,
 | 
			
		||||
                               domain, port, http_prefix, items_per_page,
 | 
			
		||||
                               header_only, True, 0, False, 0, page_number)
 | 
			
		||||
                               header_only, True, 0, False, 0, page_number,
 | 
			
		||||
                               first_post_id)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def create_replies_timeline(recent_posts_cache: {},
 | 
			
		||||
                            base_dir: str, nickname: str, domain: str,
 | 
			
		||||
                            port: int, http_prefix: str, items_per_page: int,
 | 
			
		||||
                            header_only: bool, page_number: int) -> {}:
 | 
			
		||||
                            header_only: bool, page_number: int,
 | 
			
		||||
                            first_post_id: str) -> {}:
 | 
			
		||||
    return _create_box_indexed(recent_posts_cache,
 | 
			
		||||
                               base_dir, 'tlreplies',
 | 
			
		||||
                               nickname, domain, port, http_prefix,
 | 
			
		||||
                               items_per_page, header_only, True,
 | 
			
		||||
                               0, False, 0, page_number)
 | 
			
		||||
                               0, False, 0, page_number, first_post_id)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def create_blogs_timeline(base_dir: str, nickname: str, domain: str,
 | 
			
		||||
                          port: int, http_prefix: str, items_per_page: int,
 | 
			
		||||
                          header_only: bool, page_number: int) -> {}:
 | 
			
		||||
                          header_only: bool, page_number: int,
 | 
			
		||||
                          first_post_id: str) -> {}:
 | 
			
		||||
    return _create_box_indexed({}, base_dir, 'tlblogs', nickname,
 | 
			
		||||
                               domain, port, http_prefix,
 | 
			
		||||
                               items_per_page, header_only, True,
 | 
			
		||||
                               0, False, 0, page_number)
 | 
			
		||||
                               0, False, 0, page_number, first_post_id)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def create_features_timeline(base_dir: str,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue