sendCreateMessage: Include port in targetDomain
`url.hostname` excludes port, `url.host` includes it.
This commit is contained in:
parent
ed7ade3fa6
commit
14f2d9d8a6
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ function sendCreateMessage(text, name, domain, req, res) {
|
||||||
for (let follower of followers) {
|
for (let follower of followers) {
|
||||||
let inbox = follower+'/inbox';
|
let inbox = follower+'/inbox';
|
||||||
let myURL = new URL(follower);
|
let myURL = new URL(follower);
|
||||||
let targetDomain = myURL.hostname;
|
let targetDomain = myURL.host;
|
||||||
let message = createMessage(text, name, domain, req, res, follower);
|
let message = createMessage(text, name, domain, req, res, follower);
|
||||||
signAndSend(message, name, domain, req, res, targetDomain, inbox);
|
signAndSend(message, name, domain, req, res, targetDomain, inbox);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue