set mastodon post visibility to public

This commit is contained in:
lesion 2019-03-13 20:32:09 +01:00
parent 409006a56b
commit c9c7db2f46

View file

@ -46,7 +46,7 @@ ${event.description} - ${event.tags.map(t => '#' + t.tag).join(' ')} ${config.ba
media = await bot.post('media', { file: fs.createReadStream(file) })
}
}
return bot.post('statuses', { status, visibility: 'direct', media_ids: media ? [media.data.id] : [] })
return bot.post('statuses', { status, visibility: 'public', media_ids: media ? [media.data.id] : [] })
}
// async message (msg) {
// console.log(msg)