Skip to content

Commit 3d73ebd

Browse files
committed
ObjectsWatcherMixin: let bto as undefined if recipients are empty
1 parent a8f42ea commit 3d73ebd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/middleware/packages/sync/middlewares/objects-watcher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const ObjectsWatcherMiddleware = (config = {}) => {
7878
transient: transientActivities,
7979
'@context': 'https://www.w3.org/ns/activitystreams',
8080
...activity,
81-
bto: recipients
81+
bto: recipients.length > 0 ? recipients : undefined
8282
},
8383
{ meta: { webId: actor.id, doNotProcessObject: true } }
8484
);

0 commit comments

Comments
 (0)