reorder relay activities to avoid delivery race condition
This commit is contained in:
@@ -247,11 +247,11 @@ export class NoteDeleteService {
|
||||
|
||||
@bindThis
|
||||
private async deliverToConcerned(user: { id: MiLocalUser['id']; host: null; }, note: MiNote, content: any) {
|
||||
this.apDeliverManagerService.deliverToFollowers(user, content);
|
||||
this.relayService.deliverToRelays(user, content);
|
||||
this.apDeliverManagerService.deliverToUsers(user, content, [
|
||||
await this.apDeliverManagerService.deliverToFollowers(user, content);
|
||||
await this.apDeliverManagerService.deliverToUsers(user, content, [
|
||||
...await this.getMentionedRemoteUsers(note),
|
||||
...await this.getRenotedOrRepliedRemoteUsers(note),
|
||||
]);
|
||||
await this.relayService.deliverToRelays(user, content);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user