main
Bob Mottram 2024-02-16 22:42:03 +00:00
parent d1e2713cda
commit 5566a84e5a
1 changed files with 2 additions and 0 deletions

View File

@ -664,6 +664,7 @@ def _get_profile_header(base_dir: str, http_prefix: str, nickname: str,
actor_proxied + acct_blog_str + '</b><br>\n' actor_proxied + acct_blog_str + '</b><br>\n'
if joined_date: if joined_date:
joined_str = translate['Joined'] joined_str = translate['Joined']
print('time_days_ago 1: ' + joined_date + ' ' + str(time_days_ago(joined_date)))
if time_days_ago(joined_date) < 7: if time_days_ago(joined_date) < 7:
joined_str = '<b>' + translate['New account'] + '</b>' joined_str = '<b>' + translate['New account'] + '</b>'
html_str += \ html_str += \
@ -821,6 +822,7 @@ def _get_profile_header_after_search(base_dir: str,
actor_proxied + '</b><br>\n' actor_proxied + '</b><br>\n'
if joined_date: if joined_date:
joined_str = translate['Joined'] joined_str = translate['Joined']
print('time_days_ago 2: ' + joined_date + ' ' + str(time_days_ago(joined_date)))
if time_days_ago(joined_date) < 7: if time_days_ago(joined_date) < 7:
joined_str = '<b>' + translate['New account'] + '</b>' joined_str = '<b>' + translate['New account'] + '</b>'
html_str += ' <p>' + joined_str + ' ' + \ html_str += ' <p>' + joined_str + ' ' + \