Skip to content

Commit

Permalink
fix: only create webhook debug files when debug enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck authored Aug 10, 2024
1 parent b13b51d commit 5bf780c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$kommentReceiver->storeData($newEntry, $targetPage);
},
'indieConnector.webmention.received' => function ($webmention, $targetPage) {
if (!option('mauricerenck.komments.debug', false)) {
if (option('mauricerenck.komments.debug', false)) {
$time = time();
file_put_contents('webmentionhook.' . $time . '.json', json_encode($webmention));
}
Expand Down

0 comments on commit 5bf780c

Please sign in to comment.