mirror of
https://github.com/dariusk/express-activitypub.git
synced 2024-11-21 23:01:01 +00:00
Merge pull request #8 from PaulKiddle/patch-1
sendCreateMessage: Include port in targetDomain
This commit is contained in:
commit
8c2349ade6
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,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