A Kirby 3 Webfinger plugin. Basic setup enables Mastodon endpoint, but other endpoints can be enabled via config.
Version tested: 3.7.5
Download and copy this repository to /site/plugins/kirby-webfinger
.
git submodule add https://github.com/andreasnymark/kirby-webfinger.git site/plugins/kirby-webfinger
site/config/config.php
'webfinger.username' => 'andreasnymark',
'webfinger.instance' => 'mastodon.xyz',
This enables the Mastodon endpoint.
Custom setup can be used in combination with basic setup. The Mastodon endpoint is default if used. Otherwise the first in webfinger.resources
will be default.
Test your endpoints with example.com/.well-known/webfinger?resource=acct:[email protected]
site/config/config.php
'webfinger.resources' => [
[
'subject' => 'acct:[email protected]',
'aliases' => [
'https://example.social/users/first',
],
'links' => [
[
'rel' => '…',
'href' => '…',
'type' => '…'
],
]
],
[
'subject' => 'acct:[email protected]',
'aliases' => [
'https://example.social/users/second',
],
'links' => [
[
'rel' => '…',
'href' => '…',
'type' => '…'
],
]
],
],
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please create a new issue.
You are prohibited from using this plugin in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.