Skip to content

Commit 00e4503

Browse files
authored
Update comments
1 parent 99ca6df commit 00e4503

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/middleware/packages/activitypub/services/activitypub/subservices

src/middleware/packages/activitypub/services/activitypub/subservices/outbox.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ const OutboxService = {
9696
webId: actorUri
9797
});
9898

99-
// -- Persist Capability --
100-
// There might be a capability attached which should not be persisted
101-
// because other's could otherwise read it from the (public) outbox.
99+
// -- Persist Activity --
100+
// There might be a capability attached which cannot be persisted, if it has a non-resolvable id.
101+
// So we won't persist it and re-attach it afterwards.
102102
let { capability, ...activityToPersist } = activity;
103103

104104
activityUri = await ctx.call('activitypub.activity.post', {

0 commit comments

Comments
 (0)