summaryrefslogtreecommitdiff
path: root/activitypub.js
diff options
context:
space:
mode:
authorDarius Kazemi <darius.kazemi@gmail.com>2020-01-24 16:16:27 -0800
committerDarius Kazemi <darius.kazemi@gmail.com>2020-01-24 16:16:27 -0800
commita390b02416777b045f03a286bfbb02ac369571e6 (patch)
tree8e690cf7a80635685b258eb6a4b2a1ca3f79ab36 /activitypub.js
parent111406040ec9f7f48b28077c8eea95a792b14cc7 (diff)
Converting all tabs to two-spaces
Diffstat (limited to 'activitypub.js')
-rw-r--r--activitypub.js8
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');