newUriを外に出す2

This commit is contained in:
tamaina 2023-04-20 20:55:41 +00:00
parent 0995c36c1a
commit 6b75bd33b9

View file

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