diff options
Diffstat (limited to 'activitypub.js')
-rw-r--r-- | activitypub.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activitypub.js b/activitypub.js index 2a7c18a..765bee1 100644 --- a/activitypub.js +++ b/activitypub.js @@ -124,10 +124,10 @@ function signAndSend(message, eventID, targetDomain, inbox, callback) { if (!isFederated) return; let inboxFragment = inbox.replace('https://'+targetDomain,''); // get the private key - Event.findOne({ - id: eventID - }) - .then((event) => { + Event.findOne({ + id: eventID + }) + .then((event) => { if (event) { const privateKey = event.privateKey; const signer = crypto.createSign('sha256'); |