DEV Community

Jesse Houwing
Jesse Houwing

Posted on • Originally published at jessehouwing.net on

Allow people to find you on Mastadon from your Ghost Pro domain

Allow people to find you on Mastadon from your Ghost Pro domain

First, I grabbed my personal finger file from my Mastadon server (hachyderm.io):

GET https://hachyderm.io/.well-known/webfinger?resource=acct:jessehouwing@hachyderm.io

{
    "subject": "acct:jessehouwing@hachyderm.io",
    "aliases": [
        "https://hachyderm.io/@jessehouwing",
        "https://hachyderm.io/users/jessehouwing"
    ],
    "links": [
        {
            "rel": "http://webfinger.net/rel/profile-page",
            "type": "text/html",
            "href": "https://hachyderm.io/@jessehouwing"
        },
        {
            "rel": "self",
            "type": "application/activity+json",
            "href": "https://hachyderm.io/users/jessehouwing"
        },
        {
            "rel": "http://ostatus.org/schema/1.0/subscribe",
            "template": "https://hachyderm.io/authorize_interaction?uri={uri}"
        },
        {
            "rel": "http://webfinger.net/rel/avatar",
            "type": "image/png",
            "href": "https://media.hachyderm.io/accounts/avatars/109/383/708/737/874/047/original/9ccec929256a6fd7.png"
        }
    ]
}
Enter fullscreen mode Exit fullscreen mode

I added it to the assets of my custom theme

Then added a redirect to my Ghost Redirects file:

[
    {
        "from": "^\\/(\\.well-known/webfinger.*)",
        "to": "/assets/$1",
        "permanent": true
    }
]
Enter fullscreen mode Exit fullscreen mode

And that was it. You can now find me on mastadon with *@jessehouwing.net.

Top comments (0)