THIS PLUGIN WILL BE DISCONTINUED! With the launch of Kirby 3.6 this plugin won't receive updates. Please switch to IndieConnector which comes with the same base functionality and which is 100% compatible with this plugin.
This plugin currently works only with webmention.io.
Add the Tratschtante Endpoint to your webmention.io Webhooks and enter the callback secret you set in your kirby config.
composer require mauricerenck/tratschtante
- unzip master.zip to
site/plugins/tratschtante
git submodule add https://github.com/mauricerenck/tratschtante.git site/plugins/tratschtante
You have to set a callback secret in your config.php
[
'mauricerenck.tratschtante.secret' => 'my-secret',
]
- Go to your webemention.io account and to Webhooks.
- Enter the Tratschtante endpoint:
https://your-url.tld/tratschtante/webhook/webmentionio
- Enter the callback secret you set in your config.php
Whenever a webmention ins received, Tratschtante will trigger a Kirby-Hook your plugin can subscribe to:
'hooks' => [
'tratschtante.webhook.received' => function ($webmention, $targetPage) {
// $webmention: webmention data, see below
// $targetPage: a kirby page object
// YOUR CODE
}
],
Tratschtante will handle an array with some data to you:
[
'type' => STRING // one of the webmention.io types, see https://webmention.io/settings/webhooks,
'target' => 'target url',
'source' => 'source url',
'published' => 'publication date',
'author' => [
'type' => 'card' or null,
'name' => 'name' or null,
'avatar' => 'avatar-url' or null,
'url' => 'author url' or null,
],
'content' => 'comment text or empty string'
]
- Sending webmentions (already implemented elsewhere, just have to move it here)
- Support for "native" webmentions, not only webmention.io