fix: change folder for sending toot

This commit is contained in:
Tykayn 2023-03-20 13:49:38 +01:00 committed by tykayn
parent 13b7716ec4
commit 561d39393c
1 changed files with 2 additions and 2 deletions

View File

@ -137,9 +137,9 @@ export default function sendPostMastodon(config) {
else if (config.image) { else if (config.image) {
var id; var id;
console.log("envoi du média", config.folder_image + config.image) console.log("envoi du média", config.image)
// upload new media // upload new media
return masto.post('media', {file: fs.createReadStream(config.folder_image + config.image)}) return masto.post('media', {file: fs.createReadStream(config.image)})
.then(resp => { .then(resp => {
id = resp.data.id; id = resp.data.id;
params.media_ids = [id] params.media_ids = [id]