From 3cdf9eee944f29da5f2950b5721849f7f1cdc19a Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 16 Oct 2023 00:53:23 +0200 Subject: [PATCH] [mastodon-client] Update mentions in background on /i/update --- packages/backend/src/server/api/endpoints/i/update.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index edcb36f9d..a2a912698 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -330,7 +330,9 @@ export default define(meta, paramDef, async (ps, _user, token) => { } // フォロワーにUpdateを配信 - publishToFollowers(user.id); + UserProfiles.updateMentions(user.id).finally(() => { + publishToFollowers(user.id); + }); return iObj; });