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

@@ -151,7 +151,7 @@ const userController = {
const mastodon_auth = { client_id, client_secret, access_token: token }
req.user.mastodon_auth = mastodon_auth
await req.user.save()
await bot.add(token)
await bot.add(req.user, token)
res.json(req.user)
} catch (e) {
res.json(e)