Skip to content

Commit

Permalink
fix: ミュート情報を取得するユーザーを修正 (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanarikanaru authored Feb 5, 2025
1 parent e0c65f2 commit 902e4ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/server/api/endpoints/users/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
pinNotesWithReactionAndUserPairCache: true,
});
if (packedUserProfile.pinnedNotes.length > 0) {
const userIdsWhoMeMuting = await this.cacheService.userMutingsCache.fetch(user.id);
const userIdsWhoMeMuting = me ? await this.cacheService.userMutingsCache.fetch(me.id) : new Set<string>();
await Promise.all(
packedUserProfile.pinnedNotes.map(note => removeMutedUsersReactions(note, userIdsWhoMeMuting)),
);
Expand Down

0 comments on commit 902e4ad

Please sign in to comment.