diff --git a/packages/backend/src/remote/activitypub/models/person.ts b/packages/backend/src/remote/activitypub/models/person.ts index ec747017e..17bac8596 100644 --- a/packages/backend/src/remote/activitypub/models/person.ts +++ b/packages/backend/src/remote/activitypub/models/person.ts @@ -448,6 +448,8 @@ export async function updatePerson( const person = validateActor(object, uri); + const host = await getSubjectHostFromUri(uri); + logger.info(`Updating the Person: ${person.id}`); // Fetch avatar and header image @@ -554,6 +556,10 @@ export async function updatePerson( updates.bannerId = banner.id; } + if (host) { + updates.host = host; + } + // Update user await Users.update(user.id, updates);