Giter Site home page Giter Site logo

yeswiki-extension-webhooks's Issues

probleme de dates absentes updated / published

tout juste installé un yeswiki en local avec cette extension,
c'est parfait pour envoyer des mises à jour sur un POD Solid https://bricodeurs.solidweb.org/public/activity/254e4ca0-c5ab-11eb-8bcd-b157bfa89688.json
mais les dates semblent ne pas passer correctement :

{
  "@context": [
    1
  ],
  "type": "Update",
  "to": [
    "http://127.0.0.1/yeswiki/?WikiAdmin/followers",
    "https://www.w3.org/ns/activitystreams#Public"
  ],
  "actor": "http://127.0.0.1/yeswiki/?WikiAdmin",
  "object": {
    "id": "http://127.0.0.1/yeswiki/?FadA",
    "type": "1",
    "attributedTo": "http://127.0.0.1/yeswiki/?WikiAdmin",
    "to": [
      "http://127.0.0.1/yeswiki/?WikiAdmin/followers",
      "https://www.w3.org/ns/activitystreams#Public"
    ],
    "published": "TZ",
    "updated": "TZ"
  }
}

$data['data']

ne semble pas contenir les champs nécessaires :

'published' => format_date_xsd($data['data']['date_creation_fiche']),
'updated' => format_date_xsd($data['data']['date_maj_fiche'])
{
      "action": "edit",
      "user": "WikiAdmin",
      "text": "**MODIFICATION** Fiche \"fada\" de type \"Annuaire\" mise à jour par WikiAdmin\nhttp://127.0.0.1/yeswiki/?FadA",
      "data_type": "bazar",
      "bazar_form_id": 1,
      "data": {
        "bf_titre": "fada",
        "oldimage_imagebf_image": "FadA_capture-du-2021-05-23-21-12-33.png",
        "data-imagebf_image": "",
        "filename-imagebf_image": "",
        "bf_fonction": "boom",
        "bf_projet": " - spoggy\r\n - ipgs\r\n - bon-prix\r\n - ess-tables\r\n - contacts\r\n - -",
        "bf_tel": "",
        "bf_mail": "[email protected]",
        "bf_structure": "Spoggy",
        "bf_site_internet": "http://scenaristeur.github.io/ipgs",
        "bf_adresse": "",
        "bf_code_postal": "",
        "bf_ville": "Lyon",
        "bf_latitude": "45.7578137",
        "bf_longitude": "4.8320114",
        "antispam": "1",
        "id_typeannonce": "1",
        "id_fiche": "FadA",
        "semantic": {
          "@context": [
            1
          ],
          "@type": "1",
          "@id": "http://127.0.0.1/yeswiki/?FadA"
        }
      }

Extension webhook - ajout d'un paramètre

Type of issue (keep only one) / Type de demande (ne garder qu'une ligne)
New feature / Nouvelle fonctionnalité

Description
Hello,
Je ne sais pas ce que ça engage niveau développement mais si c'est juste un paramètre à ajouter et que c'est simple il serait utile de pouvoir régler le webhook pour qu'il renvoit les modifications / ajouts sur l'ensemble des pages du wiki et non plus seulement les formulaires.

(Considérer comme un objectif de prochain sprint si c'est plus de 5 minutes :p)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.