mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 02:09:05 +01:00
[backend] Update user profile mentions in background
This commit is contained in:
parent
32d471803c
commit
062d256a67
@ -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 New Issue
Block a user