summaryrefslogtreecommitdiff
path: root/activitypub.js
diff options
context:
space:
mode:
Diffstat (limited to 'activitypub.js')
-rw-r--r--activitypub.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/activitypub.js b/activitypub.js
index 8620e81..442f03c 100644
--- a/activitypub.js
+++ b/activitypub.js
@@ -341,8 +341,11 @@ function broadcastUpdateMessage(apObject, followers, eventID) {
}
function broadcastDeleteMessage(apObject, followers, eventID, callback) {
- if (!isFederated) return;
callback = callback || function () { };
+ if (!isFederated) {
+ callback([]);
+ return;
+ }
// we need to build an array of promises for each message we're sending, run Promise.all(), and then that will resolve when every message has been sent (or failed)
// per spec, each promise will execute *as it is built*, which is fine, we just need the guarantee that they are all done
let promises = [];