mirror of
https://github.com/dariusk/express-activitypub.git
synced 2024-11-25 00:30:59 +00:00
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) {
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue