reorder relay activities to avoid delivery race condition
This commit is contained in:
parent
d39a56c1b7
commit
c302a5c2d7
11 changed files with 40 additions and 44 deletions
|
|
@ -614,7 +614,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
|
||||
// フォロワーにUpdateを配信
|
||||
if (this.userNeedsPublishing(user, updates) || this.profileNeedsPublishing(profile, updatedProfile)) {
|
||||
this.accountUpdateService.publishToFollowers(user.id);
|
||||
this.accountUpdateService.publishToFollowers(user);
|
||||
}
|
||||
|
||||
return iObj;
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
}
|
||||
|
||||
// リモートフォロワーにUpdate配信
|
||||
this.pollService.deliverQuestionUpdate(note.id);
|
||||
this.pollService.deliverQuestionUpdate(note);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue