unfollow
This commit is contained in:
parent
5b6f66d156
commit
c03f491008
2 changed files with 20 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue