diff --git a/webapp_utils.py b/webapp_utils.py index 3e4dd6f54..3041a46ac 100644 --- a/webapp_utils.py +++ b/webapp_utils.py @@ -703,6 +703,24 @@ def htmlHeaderWithPersonMarkup(cssFilename: str, instanceTitle: str, " \n" + \ " \n" + if actorJson.get('attachment'): + ogTags = ( + 'email', 'openpgp', 'blog', 'xmpp', 'matrix', 'briar', + 'jami', 'cwtch', 'languages' + ) + for attachJson in actorJson['attachment']: + if not attachJson.get('name'): + continue + if not attachJson.get('value'): + continue + name = attachJson['name'].lower() + value = attachJson['value'] + for ogTag in ogTags: + if name != ogTag: + continue + ogMetadata += \ + " \n" htmlStr = \ htmlHeaderWithExternalStyle(cssFilename, instanceTitle,