Skip to content

Commit

Permalink
chore: preparation for replacement of tratschante dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Jun 15, 2021
1 parent c94ec96 commit f0666d8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mauricerenck/komments",
"version": "0.10.3",
"version": "0.10.4",
"description": "A comment and webmention plugin for Kirby 3",
"type": "kirby-plugin",
"license": "MIT",
Expand Down
14 changes: 14 additions & 0 deletions config/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@
file_put_contents('webmentionhook.' . $time . '.json', json_encode($webmention));
}

$kommentReceiver = new KommentReceiver();
$newEntry = $kommentReceiver->createKomment($webmention);
$kommentReceiver->storeData($newEntry, $targetPage);
},
'indieConnector.webhook.received' => function ($webmention, $targetPage) {
if (!option('mauricerenck.komments.enable-webmention-support')) {
return;
}

if (!option('mauricerenck.komments.debug')) {
$time = time();
file_put_contents('webmentionhook.' . $time . '.json', json_encode($webmention));
}

$kommentReceiver = new KommentReceiver();
$newEntry = $kommentReceiver->createKomment($webmention);
$kommentReceiver->storeData($newEntry, $targetPage);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "komments",
"version": "0.10.3",
"version": "0.10.4",
"description": "A comment and webmention plugin for Kirby 3",
"main": "index.js",
"author": "Maurice Renck",
Expand Down

0 comments on commit f0666d8

Please sign in to comment.