briar://' + \ remove_html(briar_address) + '
\n' + if ricochet_address: + if ricochet_address.startswith('ricochet:'): + options_str += \ + '' + \ + remove_html(ricochet_address) + '
\n' + else: + options_str += \ + 'briar://' + \ + remove_html(ricochet_address) + '
\n' if cwtch_address: options_str += \ 'Cwtch: ' + \ diff --git a/src/webapp_profile.py b/src/webapp_profile.py index 376b28e6c..2656df574 100644 --- a/src/webapp_profile.py +++ b/src/webapp_profile.py @@ -94,6 +94,7 @@ from src.enigma import get_enigma_pub_key from src.tox import get_tox_address from src.lxmf import get_lxmf_address from src.briar import get_briar_address +from src.ricochet import get_ricochet_address from src.cwtch import get_cwtch_address from src.filters import is_filtered from src.follow import is_follower_of_person @@ -1337,6 +1338,7 @@ def html_profile(signing_priv_key_pem: str, tox_address: str = get_tox_address(profile_json) lxmf_address: str = get_lxmf_address(profile_json) briar_address: str = get_briar_address(profile_json) + ricochet_address: str = get_ricochet_address(profile_json) cwtch_address: str = get_cwtch_address(profile_json) verified_site_checkmark: str = '✔' premium: bool = is_premium_account(base_dir, nickname, domain) @@ -1344,6 +1346,7 @@ def html_profile(signing_priv_key_pem: str, art_site_url or music_site_url or youtube or peertube or \ loops or pixelfed or xmpp_address or matrix_address or \ ssb_address or tox_address or lxmf_address or briar_address or \ + ricochet_address or \ cwtch_address or pgp_pub_key or enigma_pub_key or pgp_fingerprint or \ email_address or deltachat_invite: donate_section = '
briar://
\n' + if ricochet_address: + if ricochet_address.startswith('ricochet:'): + donate_section += \ + '\n' + else: + donate_section += \ + 'ricochet:
\n' if cwtch_address: donate_section += \ 'Cwtch: