hcard url ends in guid, not username

merge-requests/130/head
Jason Robinson 2015-07-12 20:56:45 +03:00
rodzic 414da9d901
commit c37b34b550
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -90,7 +90,7 @@ class DiasporaWebFinger(BaseLegacyWebFinger):
rel="http://microformats.org/profile/hcard",
type_="text/html",
href="%s/hcard/users/%s" %(
host, username
host, guid
)
))
self.xrd.links.append(Link(

Wyświetl plik

@ -13,7 +13,7 @@ DIASPORA_WEBFINGER = """<?xml version="1.0" encoding="UTF-8"?>
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
<Subject>acct:user@server.example</Subject>
<Alias>https://server.example/people/0123456789abcdef</Alias>
<Link href="https://server.example/hcard/users/user" rel="http://microformats.org/profile/hcard" type="text/html"/>
<Link href="https://server.example/hcard/users/0123456789abcdef" rel="http://microformats.org/profile/hcard" type="text/html"/>
<Link href="https://server.example" rel="http://joindiaspora.com/seed_location" type="text/html"/>
<Link href="0123456789abcdef" rel="http://joindiaspora.com/guid" type="text/html"/>
<Link href="https://server.example/u/user" rel="http://webfinger.net/rel/profile-page" type="text/html"/>