[notifications_avancees ↪ issue_14_suite] 5 commits

spip-contrib-extensions/notifications_avancees | 5 commits

Par Cerdic, le 14 novembre 2023 à 10h24min :

v1.1.5

Modifié
paquet.xml

Détails : v1.1.5 · 0884980222 - notifications_avancees - SPIP on GIT

==============================
Par Matthieu Marcillaud, le 15 novembre 2023 à 15h59min :

fix: Deprecated boucle POUR

Modifié
formulaires/notifications_auteur.html

Détails : fix: Deprecated boucle POUR · 7574509af3 - notifications_avancees - SPIP on GIT

==============================
Par Cerdic, le 14 novembre 2023 à 15h47min :

fix: : on appelle l’éventuelle fonction contenu après le calcul du contexte, qui lui est passé en argument supplémentaire

Refs: #19

Modifié
notifavancees_pipelines.php

Détails : fix: : on appelle l'éventuelle fonction contenu après le calcul du contexte, qui lui est passé en argument supplémentaire · fa9735ffe0 - notifications_avancees - SPIP on GIT

==============================
Par Cerdic, le 17 novembre 2023 à 17h32min :

build: v1.1.6

Modifié
paquet.xml

Détails : build: v1.1.6 · 7613788797 - notifications_avancees - SPIP on GIT

==============================
Par tcharlss, le 9 juillet 2023 à 16h01min :

feat: mécanisme anti-doublon étendu à tout type de notification

Suite de 08b9122662

Une même destinataire ne peut recevoir la même notification en moins de 24h, quelque soit le type d’envoi.

Ajout d’une constante _NOTIFAVANCEES_JETON_ENVOI_DUREE_SECONDES pour modifier la durée des jetons (défaut = 24h).

Ajout d’une option bloquer_envois_doublons (booléen) pour activer ou désactiver la vérification à chaque envoi.

Ajout d’une option dry_run (booléen) pour faire des simulations (on s’arrête à la toute fin, juste avant l’envoi).

On modularise en ajoutant/déplaçant quelques fonctions dans inc/notifavancees.php :

  • verifier_jeton_envoi() + purger_jetons_doublons()
  • recuperer_contenu_envoi : récupérer le contenu d’un envoi → version texte, version courte, etc.
  • choisir_langue_envoi : choisit la langue d’un envoi en fonction du destinataire, des options, etc.

Refs #14

Ajouté
notifavancees_options.php
Modifié
formulaires/editer_notifications_abonnement.php
inc/notifavancees.php
notifavancees_pipelines.php
notifications/modes/email.php

Détails : feat: mécanisme anti-doublon étendu à tout type de notification · 17847e3884 - notifications_avancees - SPIP on GIT