From 18b497bf8257e8b4d372a76649514e6113665139 Mon Sep 17 00:00:00 2001 From: myk bilokonsky Date: Mon, 10 Apr 2017 03:01:55 +0200 Subject: weird bug, trying to see if it is related to node version not handling es6 strings sometimes? --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 3b826f3..8429a09 100644 --- a/index.js +++ b/index.js @@ -44,10 +44,11 @@ function cycle() { }); }); } - +var api_url = process.env.INSTANCE_HOST + '/api/v1'; +console.log('Now initializing mastodon API with token', process.env.AMBASSADOR_TOKEN, 'and api url', api_url); var M = new mastodon({ access_token: process.env.AMBASSADOR_TOKEN, - api_url: `${process.env.INSTANCE_HOST}/api/v1/` + api_url: api_url }); -- cgit