Merge pull request #8 from PaulKiddle/patch-1

sendCreateMessage: Include port in targetDomain
This commit is contained in:
Darius Kazemi 2022-06-23 08:07:48 -07:00 committed by GitHub
commit 8c2349ade6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
} }