Do not required plugin antispam from define (easier safe_mode update)
This commit is contained in:
parent
cfca8c7a10
commit
74651f6fef
5 changed files with 17 additions and 11 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="whiteListCom">
|
||||
<name>Whitelist comments</name>
|
||||
<version>1.4</version>
|
||||
<version>1.4.1</version>
|
||||
<author>Jean-Christian Denis and Contributors</author>
|
||||
<desc>Whitelists for comments moderation</desc>
|
||||
<file>https://git.dotclear.watch/JcDenis/whiteListCom/releases/download/v1.4/plugin-whiteListCom.zip</file>
|
||||
<file>https://git.dotclear.watch/JcDenis/whiteListCom/releases/download/v1.4.1/plugin-whiteListCom.zip</file>
|
||||
<da:dcmin>2.28</da:dcmin>
|
||||
<da:details>https://git.dotclear.watch/JcDenis/whiteListCom/src/branch/master/README.md</da:details>
|
||||
<da:support>https://git.dotclear.watch/JcDenis/whiteListCom/issues</da:support>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue