mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 09:57:29 -07:00
[backend] Update user profile mentions in background
This commit is contained in:
parent
32d471803c
commit
062d256a67
1 changed files with 2 additions and 2 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue