merge-requests/30/head
Bob Mottram 2023-10-12 16:53:19 +01:00
parent e8846e4b19
commit 03735ea75d
1 changed files with 8 additions and 2 deletions

View File

@ -511,8 +511,7 @@ def html_profile_after_search(recent_posts_cache: {}, max_recent_posts: int,
str(item)) str(item))
continue continue
profile_str += \ profile_post_html = \
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,
@ -537,6 +536,13 @@ def html_profile_after_search(recent_posts_cache: {}, max_recent_posts: int,
bold_reading, dogwhistles, bold_reading, dogwhistles,
minimize_all_images, None, minimize_all_images, None,
buy_sites) buy_sites)
if not profile_post_html:
if debug:
print('DEBUG: no html produced for profile post: ' +
str(item))
continue
profile_str += text_mode_separator + profile_post_html
i += 1 i += 1
if i >= 8: if i >= 8:
break break