assemblee-virtuelle / assemblee-virtuelle/semapps
When creating an object through ActivityPub, two Create activities are sent
- Dominant language
- TypeScript
- Stars
- 103
- Forks
- 14
- Avg merge
- 1m
- Merged PRs (30d)
- 2
Description
## Problem
If a `Create` activity is posted to the outbox, the `ObjectService` will create it on the corresponding container.
The problem is that, when the ObjectsWatcherMiddleware detects the object being created, it will post its own `Create` activity.
So we end up with two Create activity.
## Proposed solution
Keep somewhere in meta data the fact that the object was created through ActivityPub ?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the outbox handling through ObjectService and the ObjectsWatcherMiddleware, focusing on where the incoming Create activity causes object creation and where the watcher posts its own Create. Confirm the duplicate-activity path with the existing ActivityPub-related tests or reproduction described in the issue; done means one Create activity is emitted for an object created through ActivityPub.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100