Avatar property of webfinger

main
Bob Mottram 2021-10-28 10:33:27 +01:00
parent c18bd9c0f2
commit 4f17e93a02
1 changed files with 6 additions and 0 deletions

View File

@ -159,12 +159,18 @@ def createWebfingerEndpoint(nickname: str, domain: str, port: int,
profilePageHref = httpPrefix + '://' + domain + \
'/about/more?instance_actor=true'
avatarUrl = httpPrefix + "://" + domain + "/@" + personName + "/avatar.png"
account = {
"aliases": [
httpPrefix + "://" + domain + "/@" + personName,
personId
],
"links": [
{
"href": avatarUrl,
"rel": "http://webfinger.net/rel/avatar",
"type": "image/png"
},
{
"href": profilePageHref,
"rel": "http://webfinger.net/rel/profile-page",