fix: change folder for sending toot
This commit is contained in:
parent
13b7716ec4
commit
561d39393c
@ -137,9 +137,9 @@ export default function sendPostMastodon(config) {
|
||||
else if (config.image) {
|
||||
|
||||
var id;
|
||||
console.log("envoi du média", config.folder_image + config.image)
|
||||
console.log("envoi du média", config.image)
|
||||
// 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 => {
|
||||
id = resp.data.id;
|
||||
params.media_ids = [id]
|
||||
|
Loading…
Reference in New Issue
Block a user