summary refs log tree commit diff
diff options
context:
space:
mode:
-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
 });