mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-30 01:43:03 +00:00
Fix bug
This commit is contained in:
parent
dda5f6559d
commit
2e3dd2a30a
1 changed files with 2 additions and 2 deletions
|
@ -223,8 +223,8 @@ export default define(meta, async (ps, user, app) => {
|
||||||
for (const tag of user.tags.filter(x => !tags.includes(x))) updateHashtag(user, tag, true, false);
|
for (const tag of user.tags.filter(x => !tags.includes(x))) updateHashtag(user, tag, true, false);
|
||||||
//#endregion
|
//#endregion
|
||||||
|
|
||||||
await Users.update(user.id, updates);
|
if (Object.keys(updates).length > 0) await Users.update(user.id, updates);
|
||||||
await UserProfiles.update({ userId: user.id }, profile);
|
if (Object.keys(profile).length > 0) await UserProfiles.update({ userId: user.id }, profile);
|
||||||
|
|
||||||
const iObj = await Users.pack(user.id, user, {
|
const iObj = await Users.pack(user.id, user, {
|
||||||
detail: true,
|
detail: true,
|
||||||
|
|
Loading…
Reference in a new issue