From 062d256a67b4744d405c20689a66404c0a6fd626 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 18 Oct 2023 13:02:13 +0200 Subject: [PATCH] [backend] Update user profile mentions in background --- packages/backend/src/remote/activitypub/models/person.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/remote/activitypub/models/person.ts b/packages/backend/src/remote/activitypub/models/person.ts index ade7ecf2b..0fdbbcb81 100644 --- a/packages/backend/src/remote/activitypub/models/person.ts +++ b/packages/backend/src/remote/activitypub/models/person.ts @@ -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(