Account migration
This commit is contained in:
@@ -42,6 +42,7 @@ export interface ActivityPubActor {
|
||||
endpoints: {
|
||||
sharedInbox: string;
|
||||
};
|
||||
movedTo?: string; // If account has migrated to a new location
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -101,6 +102,11 @@ export function userToActor(user: User, nodeDomain: string): ActivityPubActor {
|
||||
};
|
||||
}
|
||||
|
||||
// Add movedTo if account has migrated
|
||||
if (user.movedTo) {
|
||||
actor.movedTo = user.movedTo;
|
||||
}
|
||||
|
||||
return actor;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user