make remote mig work
This commit is contained in:
parent
ac887c8999
commit
b967316d6b
1 changed files with 6 additions and 2 deletions
|
@ -58,12 +58,16 @@ export default async (actor: CacheableRemoteUser, activity: IMove): Promise<stri
|
||||||
followeeId: followee.id,
|
followeeId: followee.id,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//TODO remove this
|
||||||
console.log(followings);
|
console.log(followings);
|
||||||
|
|
||||||
followings.forEach(async following => {
|
followings.forEach(async following => {
|
||||||
//if follower is local
|
//if follower is local
|
||||||
if (!following.follower?.host) {
|
if (!following.followerHost) {
|
||||||
const follower = following.follower;
|
const follower = await getUser(following.followerId).catch(e => {
|
||||||
|
if (e.id === '15348ddd-432d-49c2-8a5a-8069753becff') throw new ApiError(meta.errors.noSuchUser);
|
||||||
|
throw e;
|
||||||
|
});
|
||||||
await deleteFollowing(follower!, followee);
|
await deleteFollowing(follower!, followee);
|
||||||
try {
|
try {
|
||||||
await create(follower!, followeeNew);
|
await create(follower!, followeeNew);
|
||||||
|
|
Loading…
Reference in a new issue