blueskyの独自ドメインハンドルからのredirect
どうやって bsky.nna774.net のドメイン名を知るんだ?(blueskyについての知識が要る) という点を除けばいい感じなので、ひとまず設定しておくことにした。
もちろん _atproto.nna774.netのTXTを引いて、
code:sh
% dig txt _atproto.nna774.net +short
"did=did:plc:dczkfrezqx3qijv3up5o4ljl"
code:sh
{
"@context": [
],
"id": "did:plc:dczkfrezqx3qijv3up5o4ljl",
"alsoKnownAs": [
"at://nna774.net"
],
"verificationMethod": [
{
"id": "did:plc:dczkfrezqx3qijv3up5o4ljl#atproto",
"type": "Multikey",
"controller": "did:plc:dczkfrezqx3qijv3up5o4ljl",
"publicKeyMultibase": "zQ3shuPr9saSgU4nsuXKJLVBmX9SKjpGPReyr8rneYeV15RUy"
}
],
"service": [
{
"id": "#atproto_pds",
"type": "AtprotoPersonalDataServer",
}
]
}
これの.service[0].serviceEndpointを得てblueskyの上に乗ってることがわかり、
code:sh
{
"handle": "nna774.net",
"did": "did:plc:dczkfrezqx3qijv3up5o4ljl",
"didDoc": {
"@context": [
],
"id": "did:plc:dczkfrezqx3qijv3up5o4ljl",
"alsoKnownAs": [
"at://nna774.net"
],
"verificationMethod": [
{
"id": "did:plc:dczkfrezqx3qijv3up5o4ljl#atproto",
"type": "Multikey",
"controller": "did:plc:dczkfrezqx3qijv3up5o4ljl",
"publicKeyMultibase": "zQ3shuPr9saSgU4nsuXKJLVBmX9SKjpGPReyr8rneYeV15RUy"
}
],
"service": [
{
"id": "#atproto_pds",
"type": "AtprotoPersonalDataServer",
}
]
},
"collections": [
"app.bsky.actor.profile",
"app.bsky.feed.like",
"app.bsky.feed.post",
"app.bsky.feed.repost",
"app.bsky.graph.follow"
],
"handleIsCorrect": true
}
とすれば〜 みたいなことはできるけど、むずかしすぎる……。