fix newUri

This commit is contained in:
Namekuji 2023-04-20 19:13:35 -04:00
parent 0f3491666a
commit 0d78cacffc

View file

@ -152,8 +152,8 @@ export class UserFollowingService implements OnModuleInit {
}
if (movedFollower.alsoKnownAs) {
const newUri = this.userEntityService.isLocalUser(movedFollower) ? movedFollower.uri : `${this.config.url}/users/${movedFollower.id}`;
const newUri = this.userEntityService.isRemoteUser(movedFollower) ? movedFollower.uri : `${this.config.url}/users/${movedFollower.id}`;
for (const oldUri of movedFollower.alsoKnownAs) {
try {
let oldAccount = await this.apPersonService.fetchPerson(oldUri);