kopia lustrzana https://github.com/snarfed/bridgy-fed
update host-meta templates to return webfinger/LRDD links
rodzic
51b92c2d81
commit
e16c455ec2
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
"rel": "lrdd",
|
||||
"type": "application/json",
|
||||
"template": "https://{{ host }}/{uri}&format=json"
|
||||
"template": "{{ host_uri }}/.well-known/webfinger?resource={uri}"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0'>
|
||||
<Link rel='lrdd' type='application/xrd+xml' template='https://{{ host }}/{uri}' />
|
||||
<Link rel='lrdd' type='application/json'
|
||||
template='{{ host_uri }}/.well-known/webfinger?resource={uri}' />
|
||||
</XRD>
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
xmlns="xri://$XRD*($v*2.0)" version="2.0">
|
||||
<Type>xri://$xrds*simple</Type>
|
||||
<Service>
|
||||
<Type>http://portablecontacts.net/spec/1.0</Type>
|
||||
<URI>https://{{ host }}/{uri}</URI>
|
||||
<Type>lrdd</Type>
|
||||
<URI>{{ host_uri }}/.well-known/webfinger?resource={uri}</URI>
|
||||
</Service>
|
||||
</XRD>
|
||||
</XRDS>
|
||||
|
|
Ładowanie…
Reference in New Issue