up osm agendadulibre coming soon

This commit is contained in:
Tykayn 2025-02-10 23:18:55 +01:00 committed by tykayn
parent 024ac97cb1
commit 22a1b3e04c
3 changed files with 527 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
import sendPostMastodon, {randomIntFromInterval} from "./libs/utils.mjs";
import sendPostMastodon, { randomIntFromInterval } from "./libs/utils.mjs";
import * as coming_events_json from './../assets/documents/agendadulibre_openstreetmap.json' assert {type: 'json'};
import {getArticlesFromDaysInJson} from './libs/rss_management.mjs'
import { getArticlesFromDaysInJson } from './libs/rss_management.mjs'
import moment from "moment";
let event_date_format = 'dddd DD/MM HH:mm'
@ -42,7 +42,8 @@ async function postLink() {
// disable_slugify: true,
slug: "osm_event_picture",
content_type: "text/markdown",
image: `${process.cwd()}/assets/osm_post_${randomIntFromInterval(1, 5)}.jpg`,
image: '',
// image: `${process.cwd()}/assets/osm_post_${randomIntFromInterval(1, 5)}.jpg`,
message: `# ${contentOfPost}
#agenda #floss #openstreetmap #hebdo`,

View File

@ -32,7 +32,7 @@ export let defaultConfigMasto = {
disable_slugify: false,
reallySendPost,
image: '',
folder_image: process.cwd() + '/assets/blog_posts_medias/',
folder_image: process.cwd(),
message: 'Hey coucou! on est le' + nowDate,
scheduled_at: '',
scheduled_at_bool: false,