Add text mode separator to profile search result

main
Bob Mottram 2023-01-01 14:28:22 +00:00
parent 3579dcaad4
commit 398cc2e01f
1 changed files with 3 additions and 1 deletions

View File

@ -380,6 +380,7 @@ def html_profile_after_search(recent_posts_cache: {}, max_recent_posts: int,
session, outbox_url, as_header, project_version, session, outbox_url, as_header, project_version,
http_prefix, from_domain, debug) http_prefix, from_domain, debug)
if user_feed: if user_feed:
text_mode_separator = '<div class="transparent"><hr></div>'
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
@ -391,6 +392,7 @@ def html_profile_after_search(recent_posts_cache: {}, max_recent_posts: int,
continue continue
profile_str += \ profile_str += \
text_mode_separator + \
individual_post_as_html(signing_priv_key_pem, individual_post_as_html(signing_priv_key_pem,
True, recent_posts_cache, True, recent_posts_cache,
max_recent_posts, max_recent_posts,
@ -421,7 +423,7 @@ def html_profile_after_search(recent_posts_cache: {}, max_recent_posts: int,
instance_title = get_config_param(base_dir, 'instanceTitle') instance_title = get_config_param(base_dir, 'instanceTitle')
return html_header_with_external_style(css_filename, return html_header_with_external_style(css_filename,
instance_title, None) + \ instance_title, None) + \
profile_str + html_footer() profile_str + text_mode_separator + html_footer()
def _get_profile_header(base_dir: str, http_prefix: str, nickname: str, def _get_profile_header(base_dir: str, http_prefix: str, nickname: str,