sendCreateMessage: Include port in targetDomain

`url.hostname` excludes port, `url.host` includes it.
This commit is contained in:
Paul Kiddle 2019-06-05 13:04:49 +01:00 committed by GitHub
parent ed7ade3fa6
commit 14f2d9d8a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,7 @@ function sendCreateMessage(text, name, domain, req, res) {
for (let follower of followers) {
let inbox = follower+'/inbox';
let myURL = new URL(follower);
let targetDomain = myURL.hostname;
let targetDomain = myURL.host;
let message = createMessage(text, name, domain, req, res, follower);
signAndSend(message, name, domain, req, res, targetDomain, inbox);
}