fix mastodon publish

This commit is contained in:
lesion
2019-02-26 14:32:49 +01:00
parent aed2fdea3c
commit ddab51bd10
3 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ const botController = {
})
console.log(botController.bots)
},
add (user) {
add (user, token) {
const bot = new Mastodon({ access_token: user.mastodon_auth.access_token, api_url: `https://${user.mastodon_instance}/api/v1/` })
const listener = bot.stream('streaming/direct')
listener.on('message', botController.message)