newUriを外に出す2
This commit is contained in:
parent
0995c36c1a
commit
6b75bd33b9
|
@ -151,9 +151,9 @@ export class UserFollowingService implements OnModuleInit {
|
||||||
movedFollower = await this.apPersonService.fetchPerson(movedFollower.uri) ?? follower;
|
movedFollower = await this.apPersonService.fetchPerson(movedFollower.uri) ?? follower;
|
||||||
}
|
}
|
||||||
|
|
||||||
const newUri = this.userEntityService.isLocalUser(movedFollower) ? movedFollower.uri : `${this.config.url}/users/${movedFollower.id}`;
|
|
||||||
|
|
||||||
if (movedFollower.alsoKnownAs) {
|
if (movedFollower.alsoKnownAs) {
|
||||||
|
const newUri = this.userEntityService.isLocalUser(movedFollower) ? movedFollower.uri : `${this.config.url}/users/${movedFollower.id}`;
|
||||||
|
|
||||||
for (const oldUri of movedFollower.alsoKnownAs) {
|
for (const oldUri of movedFollower.alsoKnownAs) {
|
||||||
try {
|
try {
|
||||||
let oldAccount = await this.apPersonService.fetchPerson(oldUri);
|
let oldAccount = await this.apPersonService.fetchPerson(oldUri);
|
||||||
|
|
Loading…
Reference in a new issue