This commit is contained in:
tamaina 2023-04-22 09:36:27 +00:00
parent 5b6f66d156
commit c03f491008
2 changed files with 20 additions and 5 deletions

View file

@ -92,6 +92,15 @@ export class AccountMoveService {
const iObj = await this.userEntityService.pack<true, true>(src.id, src, { detail: true, includeSecrets: true });
this.globalEventService.publishMainStream(src.id, 'meUpdated', iObj);
// Unfollow
const followings = await this.followingsRepository.findBy({
followeeId: src.id,
});
this.queueService.createUnfollowJob(followings.map(following => ({
from: { id: src.id },
to: { id: following.followerId },
})));
// Move!
await this.move(src, dst);