From a14be2aa97aaf9629140825c659254ca0dd23797 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 19 May 2023 21:50:47 +0100 Subject: [PATCH] Move blog icon in profile screen --- webapp_profile.py | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 9e097c179..6d5b36f1e 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -529,24 +529,20 @@ def _get_profile_header(base_dir: str, http_prefix: str, nickname: str, actor_proxied = actor_proxied.split('/')[-1] actor_proxied = ' [' + actor_proxied + ']' - html_str += \ - '

@' + nickname + '@' + domain_full + \ - actor_proxied + '
\n' - has_blog = account_has_blog(base_dir, nickname, domain) acct_blog_str = '' + has_blog = account_has_blog(base_dir, nickname, domain) if has_blog: acct_blog_str = \ - '📖' + + html_str += \ + '

@' + nickname + '@' + domain_full + \ + actor_proxied + acct_blog_str + '
\n' if joined_date: - html_str += '

' - if has_blog: - html_str += acct_blog_str + ' ' html_str += \ - translate['Joined'] + ' ' + \ + '

' + translate['Joined'] + ' ' + \ joined_date.split('T')[0] + '
\n' - elif has_blog: - html_str += '

' + acct_blog_str + '
\n' if moved_to: new_nickname = get_nickname_from_actor(moved_to) new_domain, new_port = get_domain_from_actor(moved_to)