mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
make remote mig work
This commit is contained in:
parent
fd9c4761e5
commit
d582aae655
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,
|
||||
});
|
||||
|
||||
//TODO remove this
|
||||
console.log(followings);
|
||||
|
||||
followings.forEach(async following => {
|
||||
//if follower is local
|
||||
if (!following.follower?.host) {
|
||||
const follower = following.follower;
|
||||
if (!following.followerHost) {
|
||||
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);
|
||||
try {
|
||||
await create(follower!, followeeNew);
|
||||
|
|
Loading…
Reference in a new issue