diff --git a/daemon.py b/daemon.py
index a94ce4032..8c7ee7fea 100644
--- a/daemon.py
+++ b/daemon.py
@@ -49,8 +49,6 @@ from tox import get_tox_address
from tox import set_tox_address
from briar import get_briar_address
from briar import set_briar_address
-from jami import get_jami_address
-from jami import set_jami_address
from cwtch import get_cwtch_address
from cwtch import set_cwtch_address
from matrix import get_matrix_address
@@ -5946,18 +5944,6 @@ class PubServer(BaseHTTPRequestHandler):
set_briar_address(actor_json, '')
actor_changed = True
- # change jami address
- current_jami_address = get_jami_address(actor_json)
- if fields.get('jamiAddress'):
- if fields['jamiAddress'] != current_jami_address:
- set_jami_address(actor_json,
- fields['jamiAddress'])
- actor_changed = True
- else:
- if current_jami_address:
- set_jami_address(actor_json, '')
- actor_changed = True
-
# change cwtch address
current_cwtch_address = get_cwtch_address(actor_json)
if fields.get('cwtchAddress'):
@@ -7820,7 +7806,6 @@ class PubServer(BaseHTTPRequestHandler):
blog_address = None
tox_address = None
briar_address = None
- jami_address = None
cwtch_address = None
ssb_address = None
email_address = None
@@ -7849,7 +7834,6 @@ class PubServer(BaseHTTPRequestHandler):
blog_address = get_blog_address(actor_json)
tox_address = get_tox_address(actor_json)
briar_address = get_briar_address(actor_json)
- jami_address = get_jami_address(actor_json)
cwtch_address = get_cwtch_address(actor_json)
email_address = get_email_address(actor_json)
enigma_pub_key = get_enigma_pub_key(actor_json)
@@ -7899,7 +7883,7 @@ class PubServer(BaseHTTPRequestHandler):
xmpp_address, matrix_address,
ssb_address, blog_address,
tox_address, briar_address,
- jami_address, cwtch_address,
+ cwtch_address,
enigma_pub_key,
pgp_pub_key, pgp_fingerprint,
email_address,
diff --git a/jami.py b/jami.py
deleted file mode 100644
index 2beee1380..000000000
--- a/jami.py
+++ /dev/null
@@ -1,96 +0,0 @@
-__filename__ = "jami.py"
-__author__ = "Bob Mottram"
-__license__ = "AGPL3+"
-__version__ = "1.3.0"
-__maintainer__ = "Bob Mottram"
-__email__ = "bob@libreserver.org"
-__status__ = "Production"
-__module_group__ = "Profile Metadata"
-
-
-def get_jami_address(actor_json: {}) -> str:
- """Returns jami address for the given actor
- """
- if not actor_json.get('attachment'):
- return ''
- for property_value in actor_json['attachment']:
- if not property_value.get('name'):
- continue
- if not property_value['name'].lower().startswith('jami'):
- continue
- if not property_value.get('type'):
- continue
- if not property_value.get('value'):
- continue
- if property_value['type'] != 'PropertyValue':
- continue
- property_value['value'] = property_value['value'].strip()
- if len(property_value['value']) < 2:
- continue
- if '"' in property_value['value']:
- continue
- if ' ' in property_value['value']:
- continue
- if ',' in property_value['value']:
- continue
- if '.' in property_value['value']:
- continue
- return property_value['value']
- return ''
-
-
-def set_jami_address(actor_json: {}, jami_address: str) -> None:
- """Sets an jami address for the given actor
- """
- not_jami_address = False
-
- if len(jami_address) < 2:
- not_jami_address = True
- if '"' in jami_address:
- not_jami_address = True
- if ' ' in jami_address:
- not_jami_address = True
- if '.' in jami_address:
- not_jami_address = True
- if ',' in jami_address:
- not_jami_address = True
- if '<' in jami_address:
- not_jami_address = True
-
- if not actor_json.get('attachment'):
- actor_json['attachment'] = []
-
- # remove any existing value
- property_found = None
- for property_value in actor_json['attachment']:
- if not property_value.get('name'):
- continue
- if not property_value.get('type'):
- continue
- if not property_value['name'].lower().startswith('jami'):
- continue
- property_found = property_value
- break
- if property_found:
- actor_json['attachment'].remove(property_found)
- if not_jami_address:
- return
-
- for property_value in actor_json['attachment']:
- if not property_value.get('name'):
- continue
- if not property_value.get('type'):
- continue
- if not property_value['name'].lower().startswith('jami'):
- continue
- if property_value['type'] != 'PropertyValue':
- continue
- property_value['value'] = jami_address
- return
-
- new_jami_address = {
- "name": "Jami",
- "type": "PropertyValue",
- "value": jami_address
- }
- actor_json['attachment'].append(new_jami_address)
diff --git a/pgp.py b/pgp.py
index 563155b1e..5879840a6 100644
--- a/pgp.py
+++ b/pgp.py
@@ -24,7 +24,6 @@ from posts import get_person_box
from auth import create_basic_auth_header
from session import post_json
from xmpp import get_xmpp_address
-from jami import get_jami_address
from matrix import get_matrix_address
from briar import get_briar_address
from cwtch import get_cwtch_address
@@ -657,9 +656,6 @@ def actor_to_vcard(actor: {}, domain: str) -> str:
xmpp_address = get_xmpp_address(actor)
if xmpp_address:
vcard_str += 'IMPP:xmpp:' + xmpp_address + '\n'
- jami_address = get_jami_address(actor)
- if jami_address:
- vcard_str += 'IMPP:jami:' + jami_address + '\n'
matrix_address = get_matrix_address(actor)
if matrix_address:
vcard_str += 'IMPP:matrix:' + matrix_address + '\n'
@@ -710,11 +706,6 @@ def actor_to_vcard_xml(actor: {}, domain: str) -> str:
vcard_str += ' ' + \
'xmpp' + \
'' + xmpp_address + '\n'
- jami_address = get_jami_address(actor)
- if jami_address:
- vcard_str += ' ' + \
- 'jami' + \
- '' + jami_address + '\n'
matrix_address = get_matrix_address(actor)
if matrix_address:
vcard_str += ' ' + \
diff --git a/webapp_person_options.py b/webapp_person_options.py
index bf012bd2b..50997fe0d 100644
--- a/webapp_person_options.py
+++ b/webapp_person_options.py
@@ -47,7 +47,6 @@ def html_person_options(default_timeline: str,
blog_address: str,
tox_address: str,
briar_address: str,
- jami_address: str,
cwtch_address: str,
enigma_pub_key: str,
pgp_pub_key: str,
@@ -237,9 +236,6 @@ def html_person_options(default_timeline: str,
options_str += \
'
briar://' + \
remove_html(briar_address) + '
\n'
- if jami_address:
- options_str += \
- '
Jami: ' + remove_html(jami_address) + '
\n'
if cwtch_address:
options_str += \
'
Cwtch: ' + remove_html(cwtch_address) + '
\n'
diff --git a/webapp_profile.py b/webapp_profile.py
index b5949c6b8..db41e45e7 100644
--- a/webapp_profile.py
+++ b/webapp_profile.py
@@ -51,7 +51,6 @@ from pgp import get_pgp_pub_key
from enigma import get_enigma_pub_key
from tox import get_tox_address
from briar import get_briar_address
-from jami import get_jami_address
from cwtch import get_cwtch_address
from filters import is_filtered
from follow import is_follower_of_person
@@ -675,11 +674,10 @@ def html_profile(signing_priv_key_pem: str,
ssb_address = get_ssb_address(profile_json)
tox_address = get_tox_address(profile_json)
briar_address = get_briar_address(profile_json)
- jami_address = get_jami_address(profile_json)
cwtch_address = get_cwtch_address(profile_json)
if donate_url or website_url or xmpp_address or matrix_address or \
ssb_address or tox_address or briar_address or \
- jami_address or cwtch_address or pgp_pub_key or enigma_pub_key or \
+ cwtch_address or pgp_pub_key or enigma_pub_key or \
pgp_fingerprint or email_address:
donate_section = '