diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-05-05 17:44:00 -0400 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-05-07 12:40:01 -0400 |
| commit | c302a5c2d7696bc9dddeabe914b92ad2fdc0b0ba (patch) | |
| tree | abd55451e5defc2475123450ec5a2310048a1235 /packages/backend/src/core/AccountMoveService.ts | |
| parent | merge: Merge upstream 2025.4.1 (!955) (diff) | |
| download | sharkey-c302a5c2d7696bc9dddeabe914b92ad2fdc0b0ba.tar.gz sharkey-c302a5c2d7696bc9dddeabe914b92ad2fdc0b0ba.tar.bz2 sharkey-c302a5c2d7696bc9dddeabe914b92ad2fdc0b0ba.zip | |
reorder relay activities to avoid delivery race condition
Diffstat (limited to 'packages/backend/src/core/AccountMoveService.ts')
| -rw-r--r-- | packages/backend/src/core/AccountMoveService.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/core/AccountMoveService.ts b/packages/backend/src/core/AccountMoveService.ts index 7bf33e13c5..738026f753 100644 --- a/packages/backend/src/core/AccountMoveService.ts +++ b/packages/backend/src/core/AccountMoveService.ts @@ -95,11 +95,12 @@ export class AccountMoveService { const srcPerson = await this.apRendererService.renderPerson(src); const updateAct = this.apRendererService.addContext(this.apRendererService.renderUpdate(srcPerson, src)); await this.apDeliverManagerService.deliverToFollowers(src, updateAct); - this.relayService.deliverToRelays(src, updateAct); + await this.relayService.deliverToRelays(src, updateAct); // Deliver Move activity to the followers of the old account const moveAct = this.apRendererService.addContext(this.apRendererService.renderMove(src, dst)); await this.apDeliverManagerService.deliverToFollowers(src, moveAct); + await this.relayService.deliverToRelays(src, moveAct); // Publish meUpdated event const iObj = await this.userEntityService.pack(src.id, src, { schema: 'MeDetailed', includeSecrets: true }); |