mirror of https://gitlab.com/bashrc2/epicyon
Avatar property of webfinger
parent
c18bd9c0f2
commit
4f17e93a02
|
@ -159,12 +159,18 @@ def createWebfingerEndpoint(nickname: str, domain: str, port: int,
|
||||||
profilePageHref = httpPrefix + '://' + domain + \
|
profilePageHref = httpPrefix + '://' + domain + \
|
||||||
'/about/more?instance_actor=true'
|
'/about/more?instance_actor=true'
|
||||||
|
|
||||||
|
avatarUrl = httpPrefix + "://" + domain + "/@" + personName + "/avatar.png"
|
||||||
account = {
|
account = {
|
||||||
"aliases": [
|
"aliases": [
|
||||||
httpPrefix + "://" + domain + "/@" + personName,
|
httpPrefix + "://" + domain + "/@" + personName,
|
||||||
personId
|
personId
|
||||||
],
|
],
|
||||||
"links": [
|
"links": [
|
||||||
|
{
|
||||||
|
"href": avatarUrl,
|
||||||
|
"rel": "http://webfinger.net/rel/avatar",
|
||||||
|
"type": "image/png"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"href": profilePageHref,
|
"href": profilePageHref,
|
||||||
"rel": "http://webfinger.net/rel/profile-page",
|
"rel": "http://webfinger.net/rel/profile-page",
|
||||||
|
|
Loading…
Reference in New Issue