Comment on Weird idea continues connecting fediverse and email
otl@apubtest2.srcbeat.com 8 months ago> When you specify `To: localtesting@aussie.zone` how does the bridge know if you meant `https://aussie.zone/c/localtesting` or `https://aussie.zone/u/localtesting` instead?
Good question
The process of going from that email-like address to an ActivityPub
Actor (https URL) is done by [WebFinger]. So whatever we get back from
that lookup is who we send the message to. For example, when we look
up `localtesting@aussie.zone` we get this response (truncated for
readability):
{
"rel": "self",
"type": "application/activity+json",
"href": "https://aussie.zone/c/localtesting",
"properties": {
"https://www.w3.org/ns/activitystreams#type": "Group"
}
}
The value for `type`, `application/activity+json` tells us that we can send ActivityPub stuff to it.
You can play around with WebFinger in the browser.
* your account: https://webfinger.net/lookup/?resource=binomialchicken%40lemmy.blahaj.zone
* my one: https://webfinger.net/lookup/?resource=otl%40apubtest2.srcbeat.com
Hope that makes sense?
[WebFinger]: https://webfinger.net/
binomialchicken@lemmy.blahaj.zone 8 months ago
Very cool!