From b98a965d19babd6600d5bfdc58a6a88be4f9aa40 Mon Sep 17 00:00:00 2001
From: Bob Mottram
' + profile_status + '
\n' + html_str += \ '' + profile_description_short + '
\n' + \ featured_hashtags + login_button if pinned_content: @@ -1108,6 +1114,18 @@ def html_profile(signing_priv_key_pem: str, nickname, domain, display_name, False, translate) domain_full = get_full_domain(domain, port) + profile_status = '' + if profile_json.get('sm:status'): + if isinstance(profile_json['sm:status'], str): + profile_status = remove_html(profile_json['sm:status']) + if len(profile_status) < 100: + profile_status = standardize_text(profile_status) + profile_status = \ + remove_link_trackers_from_content(profile_status) + profile_status = \ + add_emoji_to_display_name(session, base_dir, http_prefix, + nickname, domain, + profile_status, False, translate) if not dangerous_markup(profile_json['summary'], False, []): profile_description = profile_json['summary'] else: @@ -1488,7 +1506,8 @@ def html_profile(signing_priv_key_pem: str, nickname, domain, domain_full, translate, default_timeline, display_name, - pronouns, profile_description_short, + pronouns, profile_status, + profile_description_short, featured_hashtags, login_button, avatar_url, theme, moved_to, also_known_as,