From d27212a0d47a2f04018966e2854f29e9380356bd Mon Sep 17 00:00:00 2001
From: Bob Mottram
' + profile_description_short + '
\n' + login_button + '' + profile_description_short + '
\n' + \ + featured_hashtags + login_button if pinned_content: html_str += pinned_content.replace('', '
📎', 1) @@ -582,6 +586,7 @@ def _get_profile_header_after_search(nickname: str, default_timeline: str, display_name: str, follows_you: bool, profile_description_short: str, + featured_hashtags: str, avatar_url: str, image_url: str, moved_to: str, actor: str, also_known_as: [], @@ -660,8 +665,11 @@ def _get_profile_header_after_search(nickname: str, default_timeline: str, if ctr > 0: html_str += other_accounts_html + if featured_hashtags: + featured_hashtags += '\n' html_str += \ '
' + profile_description_short + '
\n' + \ + featured_hashtags + \ ' \n' + \ ' \n\n' return html_str @@ -739,10 +747,9 @@ def html_profile(signing_priv_key_pem: str, add_emoji_to_display_name(session, base_dir, http_prefix, nickname, domain, profile_description, False, translate) - profile_description = \ - profile_description + get_featured_hashtags_as_html(profile_json) if profile_description: profile_description = standardize_text(profile_description) + featured_hashtags = get_featured_hashtags_as_html(profile_json) posts_button = 'button' following_button = 'button' moved_button = 'button' @@ -1039,6 +1046,7 @@ def html_profile(signing_priv_key_pem: str, domain, domain_full, translate, default_timeline, display_name, profile_description_short, + featured_hashtags, login_button, avatar_url, theme, moved_to, also_known_as, pinned_content, access_keys,