diff options
author | Raphael <raphaelkabo@gmail.com> | 2020-02-06 11:13:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 11:13:10 +0000 |
commit | b0de8dc1d798965b8d6789b66ede19084ba84f35 (patch) | |
tree | 8b4db2859177c86bcaf569f703346663ffa3bae8 /activitypub.js | |
parent | 43a6bf362105e96eeb7ed8641096cd1f5064d3f2 (diff) | |
parent | a594946b13c15fda6d49f0651ffdf2332a3793cd (diff) |
Merge branch 'master' into newmaster
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'); |