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)