nhoizey / github-action-feed-to-mastodon

A GitHub Action to create toots on Mastodon from a JSON Feed
MIT License
23 stars 3 forks source link

Check for issue with long `delayTootsSameItem` if `ignoreFirstRun` is `true` #61

Closed nhoizey closed 7 months ago

nhoizey commented 10 months ago

When ignoreFirstRun = true, the first run doesn't create any toot, but stores the timestamp in each item and a text message in the list of toots:

{
  "https://nicolas-hoizey.photo/galleries/travels/europe/italy/venice/burano/colourful-burano/": {
    "id": "https://nicolas-hoizey.photo/galleries/travels/europe/italy/venice/burano/colourful-burano/",
    "url": "https://nicolas-hoizey.photo/galleries/travels/europe/italy/venice/burano/colourful-burano/",
    "language": "en",
    "title": "Colourful Burano",
    "date_published": "2008-04-26T14:37:21Z",
    "content_text": "“Colourful Burano”\n\n\n\n🔎 https://nicolas-hoizey.photo/galleries/travels/europe/italy/venice/burano/colourful-burano/\n\n📅 26 April 2008\n\n📸 Canon 350D + 17-85mm\n🎛️ ISO 100, ƒ/10, 1/200 s\n\n#Travel #TravelPhotography #Europe #Italy #Venice #Burano #Photography",
    "attachments": [
      {
        "url": "https://nicolas-hoizey.photo/photos/colourful-burano/small.jpg",
        "mime_type": "image/jpeg",
        "title": "Colourful Burano"
      }
    ],
    "toots": [
      "Ignored during first run (see `ignoreFirstRun` input)"
    ],
    "lastTootTimestamp": 1704500964402
  }
}

Which means no new toot will be sent:

nhoizey commented 7 months ago

Issue with nbTootsPerItem: 1 fixed in 92aced79208d01888691ef78dbc7a575ef11c186

nhoizey commented 7 months ago

Issue with nbTootsPerItem: 1 fixed in 92aced7

This was an error.

nhoizey commented 7 months ago

No issue after all… 😅