diff --git a/CHANGELOG.md b/CHANGELOG.md index bdd6004..a6af618 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ +whiteListCom 1.4.1 - 2023.10.14 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Do not required plugin antispam from define (easier safe_mode update) + whiteListCom 1.4 - 2023.10.11 =========================================================== -* Require Dotclear 2.27 +* Require Dotclear 2.28 * Require PHP 8.1 * Upgrade to Dotclear 2.28 diff --git a/README.md b/README.md index 46f221d..77ab55c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # README -[![Release](https://img.shields.io/badge/release-1.4-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/whiteListCom/releases) -![Date](https://img.shields.io/badge/date-2023.10.11-c44d58.svg) +[![Release](https://img.shields.io/badge/release-1.4.1-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/whiteListCom/releases) +![Date](https://img.shields.io/badge/date-2023.10.13-c44d58.svg) [![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/whiteListCom) [![License](https://img.shields.io/github/license/JcDenis/whiteListCom)](https://git.dotclear.watch/JcDenis/whiteListCom/blob/master/LICENSE) diff --git a/_define.php b/_define.php index 83a240d..f26a062 100644 --- a/_define.php +++ b/_define.php @@ -17,12 +17,9 @@ $this->registerModule( 'Whitelist comments', 'Whitelists for comments moderation', 'Jean-Christian Denis and Contributors', - '1.4', + '1.4.1', [ - 'requires' => [ - ['core', '2.28'], - ['antispam', '2.0'], - ], + 'requires' => [['core', '2.28']], 'permissions' => 'My', 'priority' => 200, 'type' => 'plugin', diff --git a/dcstore.xml b/dcstore.xml index 6c21ba2..af7c702 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Whitelist comments - 1.4 + 1.4.1 Jean-Christian Denis and Contributors Whitelists for comments moderation - https://git.dotclear.watch/JcDenis/whiteListCom/releases/download/v1.4/plugin-whiteListCom.zip + https://git.dotclear.watch/JcDenis/whiteListCom/releases/download/v1.4.1/plugin-whiteListCom.zip 2.28 https://git.dotclear.watch/JcDenis/whiteListCom/src/branch/master/README.md https://git.dotclear.watch/JcDenis/whiteListCom/issues diff --git a/src/Prepend.php b/src/Prepend.php index 6fc3f82..eae667a 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -35,7 +35,10 @@ class Prepend extends Process $spamfilters[] = ReservedWhiteList::class; }, 'publicAfterCommentCreate' => function (Cursor $cur, int $id): void { - if (!App::blog()->isDefined() || App::blog()->settings()->get('system')->get('comments_pub')) { + if (!App::blog()->isDefined() + || !App::plugins()->moduleExists('antispam') + || App::blog()->settings()->get('system')->get('comments_pub') + ) { return; }