From 09e01639be4ea9691cf5b33f7d9057b68ac98079 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 15 Mar 2016 13:53:16 +0100 Subject: don't add #url to shortened URLs --- newsbot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newsbot.js b/newsbot.js index c3dc65a..42d0666 100644 --- a/newsbot.js +++ b/newsbot.js @@ -222,7 +222,7 @@ function getShortLink (link, callback) { data += chunk }) response.on('end', function () { - callback(null, data.replace(/\r\n$/,'') + '#' + URL.parse(link).host) + callback(null, data.replace(/\r\n$/,'')) }) }) } -- cgit v1.2.3