[backend] Update user profile mentions in background

This commit is contained in:
Laura Hausmann 2023-10-18 13:02:13 +02:00
parent 32d471803c
commit 062d256a67
No known key found for this signature in database
GPG Key ID: D044E84C5BE01605

View File

@ -387,7 +387,7 @@ export async function createPerson(
updateUsertags(user!, tags); updateUsertags(user!, tags);
// Mentions update // Mentions update
await UserProfiles.updateMentions(user!.id); UserProfiles.updateMentions(user!.id);
//#region Fetch avatar and header image //#region Fetch avatar and header image
const [avatar, banner] = await Promise.all( const [avatar, banner] = await Promise.all(
@ -607,7 +607,7 @@ export async function updatePerson(
updateUsertags(user, tags); updateUsertags(user, tags);
// Mentions update // Mentions update
await UserProfiles.updateMentions(user!.id); UserProfiles.updateMentions(user!.id);
// If the user in question is a follower, followers will also be updated. // If the user in question is a follower, followers will also be updated.
await Followings.update( await Followings.update(