fix newUri
This commit is contained in:
parent
0f3491666a
commit
0d78cacffc
|
@ -152,8 +152,8 @@ export class UserFollowingService implements OnModuleInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (movedFollower.alsoKnownAs) {
|
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) {
|
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