From 4374ce4db5aa262cc1897835867ef62b84d416e9 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 6 Aug 2023 22:46:37 +0200 Subject: [PATCH] release 1.3 --- CHANGELOG.md | 113 +++++++++++++++++++++++++++++++-------------------- README.md | 20 +++++---- _define.php | 12 +++--- dcstore.xml | 10 ++--- 4 files changed, 90 insertions(+), 65 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 895662a..743f5f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,59 +1,82 @@ -1.2 - 2023.05.13 -- require dotclear 2.26 -- fix nullsafe warnings -- release for dotclear 2.26 stable +dcFilterDuplicate 1.3 - 2023.08.06 +=========================================================== +* Require Dotclear 2.27 +* Require PHP 7.4+ +* Upgrade to Dotclear 2.27 +* Move third party repository +* Use Dotclear style for changelog -1.1 - 2023.04.20 -- require dotclear 2.26 -- use sql statement -- use dotclear helpers -- use plugin Uninstaller -- various cosmetic fix +dcFilterDuplicate 1.2 - 2023.05.13 +=========================================================== +* require dotclear 2.26 +* fix nullsafe warnings +* release for dotclear 2.26 stable -1.0 - 2023.03.11 -- update to dotclear 2.25 -- use namespace +dcFilterDuplicate 1.1 - 2023.04.20 +=========================================================== +* require dotclear 2.26 +* use sql statement +* use dotclear helpers +* use plugin Uninstaller +* various cosmetic fix -0.9.1 - 2022.12.20 -- fix permission -- fix install +dcFilterDuplicate 1.0 - 2023.03.11 +=========================================================== +* update to dotclear 2.25 +* use namespace -0.9 - 2022.11.20 -- fix compatibility with Dotclear 2.24 (required) +dcFilterDuplicate 0.9.1 - 2022.12.20 +=========================================================== +* fix permission +* fix install -0.8 -- clean up php files and some decoration -- fix rights, only super admin can change settings +dcFilterDuplicate 0.9 - 2022.11.20 +=========================================================== +* fix compatibility with Dotclear 2.24 (required) -0.7 - 2021.08.27 -- cleanup (PSR2,short array, ...) +dcFilterDuplicate 0.8 +=========================================================== +* clean up php files and some decoration +* fix rights, only super admin can change settings -0.6 - 22.04.2015 - Pierre Van Glabeke -- Modifs typo -- Ajout message -- Modif url support +dcFilterDuplicate 0.7 - 2021.08.27 +=========================================================== +* cleanup (PSR2,short array, ...) -0.5 - 2013.11.12 -- Clean up code +dcFilterDuplicate 0.6 - 22.04.2015 - Pierre Van Glabeke +=========================================================== +* Modifs typo +* Ajout message +* Modif url support -0.4 - 2011.01.20 -- Fixed call to blog object on prepend -- New year copyright +dcFilterDuplicate 0.5 - 2013.11.12 +=========================================================== +* Clean up code -0.3.2 - 2010.11.12 -- Fixed install on nightly build +dcFilterDuplicate 0.4 - 2011.01.20 +=========================================================== +* Fixed call to blog object on prepend +* New year copyright -0.3.1 - 2010.06.22 -- Fixed me! +dcFilterDuplicate 0.3.2 - 2010.11.12 +=========================================================== +* Fixed install on nightly build -0.3 - 2010.06.05 -- Switched to DC 2.2 +dcFilterDuplicate 0.3.1 - 2010.06.22 +=========================================================== +* Fixed me! -0.2 - 2009.12.13 -- Fixed trigger blogs -- Enabled min length of comment to filter -- Prepared DC 2.2 Break -- Added versioning +dcFilterDuplicate0.3 - 2010.06.05 +=========================================================== +* Switched to DC 2.2 -0.1 - 2009.10.09 -- First lab release \ No newline at end of file +dcFilterDuplicate 0.2 - 2009.12.13 +=========================================================== +* Fixed trigger blogs +* Enabled min length of comment to filter +* Prepared DC 2.2 Break +* Added versioning + +dcFilterDuplicate 0.1 - 2009.10.09 +=========================================================== +* First lab release \ No newline at end of file diff --git a/README.md b/README.md index 82b721d..f1b6a0e 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ # README -[![Release](https://img.shields.io/github/v/release/JcDenis/dcFilterDuplicate)](https://github.com/JcDenis/dcFilterDuplicate/releases) -[![Date](https://img.shields.io/github/release-date/JcDenis/dcFilterDuplicate)](https://github.com/JcDenis/dcFilterDuplicate/releases) -[![Issues](https://img.shields.io/github/issues/JcDenis/dcFilterDuplicate)](https://github.com/JcDenis/dcFilterDuplicate/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download) +[![Release](https://img.shields.io/github/v/release/JcDenis/dcFilterDuplicate)](https://git.dotclear.watch/JcDenis/dcFilterDuplicate/releases) +[![Date](https://img.shields.io/github/release-date/JcDenis/dcFilterDuplicate)](https://git.dotclear.watch/JcDenis/dcFilterDuplicate/releases) +[![Issues](https://img.shields.io/github/issues/JcDenis/dcFilterDuplicate)](https://git.dotclear.watch/JcDenis/dcFilterDuplicate/issues) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.27-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/dcFilterDuplicate) -[![License](https://img.shields.io/github/license/JcDenis/dcFilterDuplicate)](https://github.com/JcDenis/dcFilterDuplicate/blob/master/LICENSE) +[![License](https://img.shields.io/github/license/JcDenis/dcFilterDuplicate)](https://git.dotclear.watch/JcDenis/dcFilterDuplicate/blob/master/LICENSE) ## WHAT IS DCFILTERDUPLICATE ? @@ -19,7 +19,7 @@ Filter as spam same (duplicate) comments from multiple blogs of a Dotclear's ins dcFilterDuplicate requires: * permissions to manage antispam - * Dotclear 2.26 + * Dotclear 2.27 ## USAGE @@ -31,10 +31,12 @@ Enable and configure "Dupicate comments filter" from antispam manager. ## MORE * License : GNU GPL v2 - * Source & contribution : [GitHub Page](https://github.com/JcDenis/dcFilterDuplicate) - * Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/dcFilterDuplicate) + * Source & contribution : [Gitea Page](https://git.dotclear.watch/JcDenis/dcFilterDuplicate) or [GitHub Page](https://github.com/JcDenis/dcFilterDuplicate) + * Packages & details: [Gitea Page](https://git.dotclear.watch/JcDenis/dcFilterDuplicate/releases) or [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/dcFilterDuplicate) ## CONTRIBUTORS * Jean-Chirstian Denis - * Pierre Van Glabeke \ No newline at end of file + * Pierre Van Glabeke + +You are welcome to contribute to this code. \ No newline at end of file diff --git a/_define.php b/_define.php index 885b45a..ce59fc8 100644 --- a/_define.php +++ b/_define.php @@ -10,7 +10,7 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { +if (!defined('DC_RC_PATH')) { return null; } @@ -18,16 +18,16 @@ $this->registerModule( 'Duplicate filter', 'Antispam for duplicate comments on multiblog', 'Jean-Christian Denis, Pierre Van Glabeke', - '1.2', + '1.3', [ - 'requires' => [['core', '2.26']], + 'requires' => [['core', '2.27']], 'permissions' => dcCore::app()->auth->makePermissions([ dcCore::app()->auth::PERMISSION_ADMIN, ]), 'priority' => 200, 'type' => 'plugin', - 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=332947#p332947', - 'details' => 'http://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), - 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', + 'support' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/issues', + 'details' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/src/branch/master/README.md', + 'repository' => 'https://git.dotclear.watch/JcDenis/' . basename(__DIR__) . '/raw/branch/master/dcstore.xml', ] ); diff --git a/dcstore.xml b/dcstore.xml index a8ef92b..16f7718 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,12 +2,12 @@ Duplicate filter - 1.2 + 1.3 Jean-Christian Denis, Pierre Van Glabeke Antispam for duplicate comments on multiblog - https://github.com/JcDenis/dcFilterDuplicate/releases/download/v1.2/plugin-dcFilterDuplicate.zip - 2.26 - http://plugins.dotaddict.org/dc2/details/dcFilterDuplicate - http://forum.dotclear.org/viewtopic.php?pid=332947#p332947 + https://gitea.dotclear.watch/JcDenis/dcFilterDuplicate/releases/download/v1.3/plugin-dcFilterDuplicate.zip + 2.27 + https://git.dotclear.watch/JcDenis/dcFilterDuplicate/src/branch/master/README.md + https://git.dotclear.watch/JcDenis/dcFilterDuplicate/issues