mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-03-04 07:18:50 -07:00
Also update host on updatePerson
This commit is contained in:
parent
e9e63ebaa8
commit
2f103229e5
1 changed files with 6 additions and 0 deletions
|
@ -448,6 +448,8 @@ export async function updatePerson(
|
||||||
|
|
||||||
const person = validateActor(object, uri);
|
const person = validateActor(object, uri);
|
||||||
|
|
||||||
|
const host = await getSubjectHostFromUri(uri);
|
||||||
|
|
||||||
logger.info(`Updating the Person: ${person.id}`);
|
logger.info(`Updating the Person: ${person.id}`);
|
||||||
|
|
||||||
// Fetch avatar and header image
|
// Fetch avatar and header image
|
||||||
|
@ -554,6 +556,10 @@ export async function updatePerson(
|
||||||
updates.bannerId = banner.id;
|
updates.bannerId = banner.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (host) {
|
||||||
|
updates.host = host;
|
||||||
|
}
|
||||||
|
|
||||||
// Update user
|
// Update user
|
||||||
await Users.update(user.id, updates);
|
await Users.update(user.id, updates);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue