From 4f17e93a02b345c8519d3444ac414fa63e5ee339 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 28 Oct 2021 10:33:27 +0100 Subject: [PATCH] Avatar property of webfinger --- webfinger.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webfinger.py b/webfinger.py index 3ca4f00e5..c2aa75358 100644 --- a/webfinger.py +++ b/webfinger.py @@ -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",