Social profile on vcard

main
Bob Mottram 2024-08-12 13:32:26 +01:00
parent 58ad31ac5a
commit 496bd0ac04
1 changed files with 1 additions and 0 deletions

1
pgp.py
View File

@ -740,6 +740,7 @@ def actor_to_vcard(actor: {}, domain: str) -> str:
pronouns = get_pronouns(actor)
if pronouns:
vcard_str += 'PRONOUNS:' + pronouns + '\n'
vcard_str += 'SOCIALPROFILE;SERVICE-TYPE=Mastodon:' + actor['url'] + '\n'
xmpp_address = get_xmpp_address(actor)
if xmpp_address:
vcard_str += 'IMPP:xmpp:' + xmpp_address + '\n'