From 64adef0a8b5fa887baabb38f79a98369c8ba3249 Mon Sep 17 00:00:00 2001 From: Maurice Renck Date: Mon, 10 Aug 2020 20:31:27 +0200 Subject: [PATCH] fix: hook trigger add: debug mode --- composer.json | 2 +- composer.lock | 2 +- config/options.php | 1 + index.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index faa4e79..2e7e44f 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "mauricerenck/tratschtante", - "version": "1.0.2", + "version": "1.0.3", "description": "Kirby Webmentions your plugins can subscribe to", "type": "kirby-plugin", "license": "MIT", diff --git a/composer.lock b/composer.lock index 32612a5..9571f6d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ab4b5aaa07075ab51bde07a2ffdd6fbe", + "content-hash": "eb5f8a80857419430c39ed94745c27ed", "packages": [ { "name": "claviska/simpleimage", diff --git a/config/options.php b/config/options.php index a089041..71d2ccd 100644 --- a/config/options.php +++ b/config/options.php @@ -2,4 +2,5 @@ return [ 'secret' => null, + 'debug' => false, ]; diff --git a/index.php b/index.php index f946eda..28bf323 100644 --- a/index.php +++ b/index.php @@ -48,7 +48,7 @@ } } - $hookHelper->triggerHook('tratschtante.webhook.received', $webmention, $targetPage); + $hookHelper->triggerHook('tratschtante.webhook.received', ['webmention' => $webmention, 'targetPage' => $targetPage]); return $webmention; }