[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
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

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