mirror of https://gitlab.com/bashrc2/epicyon
				
				
				
			Show current reading point in conversation
							parent
							
								
									f3c5dd85ac
								
							
						
					
					
						commit
						da7150c24c
					
				| 
						 | 
					@ -80,6 +80,7 @@ def html_conversation_view(authorized: bool, post_id: str,
 | 
				
			||||||
    minimize_all_images = False
 | 
					    minimize_all_images = False
 | 
				
			||||||
    if nickname in min_images_for_accounts:
 | 
					    if nickname in min_images_for_accounts:
 | 
				
			||||||
        minimize_all_images = True
 | 
					        minimize_all_images = True
 | 
				
			||||||
 | 
					    current_reading_str = ''
 | 
				
			||||||
    for post_json_object in conv_posts:
 | 
					    for post_json_object in conv_posts:
 | 
				
			||||||
        show_individual_post_icons = True
 | 
					        show_individual_post_icons = True
 | 
				
			||||||
        # if not authorized then only show public posts
 | 
					        # if not authorized then only show public posts
 | 
				
			||||||
| 
						 | 
					@ -126,12 +127,17 @@ def html_conversation_view(authorized: bool, post_id: str,
 | 
				
			||||||
                                    minimize_all_images, None,
 | 
					                                    minimize_all_images, None,
 | 
				
			||||||
                                    buy_sites, auto_cw_cache)
 | 
					                                    buy_sites, auto_cw_cache)
 | 
				
			||||||
        if post_str:
 | 
					        if post_str:
 | 
				
			||||||
            if post_json_object.get('id'):
 | 
					            conv_str += \
 | 
				
			||||||
                if isinstance(post_json_object['id'], str):
 | 
					                current_reading_str + text_mode_separator + \
 | 
				
			||||||
                    id_str = remove_id_ending(post_json_object['id'])
 | 
					                separator_str + post_str
 | 
				
			||||||
                    if post_id in id_str:
 | 
					
 | 
				
			||||||
                        post_str += '<br><hr><br>\n'
 | 
					        # show separator at the current reading point
 | 
				
			||||||
            conv_str += text_mode_separator + separator_str + post_str
 | 
					        current_reading_str = ''
 | 
				
			||||||
 | 
					        if post_json_object.get('id'):
 | 
				
			||||||
 | 
					            if isinstance(post_json_object['id'], str):
 | 
				
			||||||
 | 
					                id_str = remove_id_ending(post_json_object['id'])
 | 
				
			||||||
 | 
					                if post_id in id_str:
 | 
				
			||||||
 | 
					                    current_reading_str = '<br><hr><br>\n'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # if using a text mode browser then don't show SHOW MORE because there
 | 
					    # if using a text mode browser then don't show SHOW MORE because there
 | 
				
			||||||
    # is no way to hide/expand sections
 | 
					    # is no way to hide/expand sections
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue