mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Guard against duplicate ephemeral events being streamed
This commit is contained in:
parent
984f76d184
commit
789b6c7e93
1 changed files with 3 additions and 0 deletions
|
|
@ -131,6 +131,9 @@ export class DittoPgStore extends NPostgres {
|
|||
dbEventsCounter.inc({ kind: event.kind });
|
||||
|
||||
if (NKinds.ephemeral(event.kind)) {
|
||||
if (this.encounters.has(event.id)) return;
|
||||
this.encounters.set(event.id, true);
|
||||
|
||||
return await this.fulfill(event);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue