summary refs log tree commit diff
diff options
context:
space:
mode:
authormyk bilokonsky <mbilokonsky@gmail.com>2017-04-10 03:01:55 +0200
committermyk bilokonsky <mbilokonsky@gmail.com>2017-04-10 03:01:55 +0200
commit18b497bf8257e8b4d372a76649514e6113665139 (patch)
tree74f7c314ee55a5c62ee59dfa638bb3c461c39ca3
parent84d92bf2c57f418254691faba68925f8fd07abdb (diff)
weird bug, trying to see if it is related to node version not handling es6 strings sometimes?
-rw-r--r--index.js5
1 files 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
 });