summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-03-15 13:53:16 +0100
committertv <tv@krebsco.de>2016-03-15 13:53:16 +0100
commit09e01639be4ea9691cf5b33f7d9057b68ac98079 (patch)
treee76e128db5346896f13ecd56fef028336288235f
parent802b172d0eed6c9625a9cb5db408f5cc8c01784e (diff)
don't add #url to shortened URLsHEADmaster
-rw-r--r--newsbot.js2
1 files changed, 1 insertions, 1 deletions
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$/,''))
})
})
}