mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 06:00:21 +01:00
check movedToUri when receiving a follow request
This commit is contained in:
parent
fc327f0567
commit
942d5b6672
1 changed files with 3 additions and 1 deletions
|
@ -145,7 +145,9 @@ export class UserFollowingService implements OnModuleInit {
|
|||
try {
|
||||
await this.apPersonService.updatePerson(oldUri);
|
||||
const oldAccount = await this.apPersonService.resolvePerson(oldUri);
|
||||
autoAccept = await this.followingsRepository.exist({
|
||||
const newUri = this.userEntityService.isRemoteUser(follower) ? follower.uri : `${this.config.url}/users/${follower.id}`;
|
||||
|
||||
autoAccept = oldAccount.movedToUri === newUri && await this.followingsRepository.exist({
|
||||
where: {
|
||||
followeeId: followee.id,
|
||||
followerId: oldAccount.id,
|
||||
|
|
Loading…
Reference in a new issue