Show ricochet address on profile after search

main
bashrc 2026-07-04 10:55:06 +01:00
parent 9363ca12ec
commit 4ac570a337
2 changed files with 11 additions and 1 deletions

View File

@ -527,7 +527,7 @@ def html_person_options(default_timeline: str,
remove_html(ricochet_address) + '</p>\n' remove_html(ricochet_address) + '</p>\n'
else: else:
options_str += \ options_str += \
' <p class="imText">briar://' + \ ' <p class="imText">ricochet:' + \
remove_html(ricochet_address) + '</p>\n' remove_html(ricochet_address) + '</p>\n'
if cwtch_address: if cwtch_address:
options_str += \ options_str += \

View File

@ -393,6 +393,7 @@ def html_profile_after_search(authorized: bool,
donate_url: str = get_donation_url(profile_json) donate_url: str = get_donation_url(profile_json)
blog_url: str = get_blog_address(profile_json) blog_url: str = get_blog_address(profile_json)
lxmf_address: str = get_lxmf_address(profile_json) lxmf_address: str = get_lxmf_address(profile_json)
ricochet_address: str = get_ricochet_address(profile_json)
moved_to: str = '' moved_to: str = ''
if profile_json.get('movedTo') or profile_json.get('copiedTo'): if profile_json.get('movedTo') or profile_json.get('copiedTo'):
@ -535,6 +536,7 @@ def html_profile_after_search(authorized: bool,
attached_shared_items, attached_shared_items,
website_url, blog_url, website_url, blog_url,
lxmf_address, lxmf_address,
ricochet_address,
repo_url, send_blocks_str, repo_url, send_blocks_str,
authorized, authorized,
person_url, no_of_books, person_url, no_of_books,
@ -951,6 +953,7 @@ def _get_profile_header_after_search(base_dir: str,
website_url: str, website_url: str,
blog_url: str, blog_url: str,
lxmf_address: str, lxmf_address: str,
ricochet_address: str,
repo_url: str, repo_url: str,
send_blocks_str: str, send_blocks_str: str,
authorized: bool, authorized: bool,
@ -1090,6 +1093,13 @@ def _get_profile_header_after_search(base_dir: str,
if lxmf_address: if lxmf_address:
html_str += \ html_str += \
' <p>LXMF: ' + lxmf_address + '</p>\n' ' <p>LXMF: ' + lxmf_address + '</p>\n'
if ricochet_address:
if ricochet_address.startswith('ricochet:'):
html_str += \
' <p>' + ricochet_address + '</p>\n'
else:
html_str += \
' <p>ricochet: ' + ricochet_address + '</p>\n'
if youtube: if youtube:
html_str += ' <p>YouTube: <a href="' + youtube + '">' + \ html_str += ' <p>YouTube: <a href="' + youtube + '">' + \
youtube + '</a></p>\n' youtube + '</a></p>\n'