From f9e96015dbdb398f95a6a8ab7cd8920640ad1b9e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 16 May 2025 15:50:25 +0100 Subject: [PATCH] Show blog link on profile after search --- webapp_profile.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/webapp_profile.py b/webapp_profile.py index 2f53ddec9..35b03bd4b 100644 --- a/webapp_profile.py +++ b/webapp_profile.py @@ -344,6 +344,7 @@ def html_profile_after_search(authorized: bool, peertube = get_peertube(profile_json) pixelfed = get_pixelfed(profile_json) donate_url = get_donation_url(profile_json) + blog_url = get_blog_address(profile_json) moved_to = '' if profile_json.get('movedTo'): @@ -473,8 +474,8 @@ def html_profile_after_search(authorized: bool, also_known_as, access_keys, joined_date, actor_proxied, attached_shared_items, - website_url, repo_url, - send_blocks_str, + website_url, blog_url, + repo_url, send_blocks_str, authorized, person_url, no_of_books, birth_date, @@ -863,6 +864,7 @@ def _get_profile_header_after_search(base_dir: str, actor_proxied: str, attached_shared_items: str, website_url: str, + blog_url: str, repo_url: str, send_blocks_str: str, authorized: bool, @@ -988,6 +990,12 @@ def _get_profile_header_after_search(base_dir: str, if website_url: html_str += '

🌐 ' + \ website_url + '

\n' + if blog_url: + blog_str = 'Blog' + if translate.get('Blog'): + blog_str = translate['Blog'] + html_str += '

' + blog_str + ': ' + \ + blog_url + '

\n' if youtube: html_str += '

YouTube: ' + \ youtube + '

\n'