Skip to content

Commit

Permalink
fix(backend): チャンネルのピン留めされたノートの順番が正しくない問題を修正
Browse files Browse the repository at this point in the history
Fix #10541
  • Loading branch information
syuilo committed Apr 12, 2023
1 parent 6839441 commit dcbaca4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
- カスタム絵文字でリアクションできないことがある問題を修正

### Client
-
- チャンネルのピン留めされたノートの順番が正しくない問題を修正

### Server
- フォローインポートなどでの大量のフォロー等操作をキューイングするように #10544 @nmkj-io
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/core/entities/ChannelEntityService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class ChannelEntityService {
} : {}),

...(detailed ? {
pinnedNotes: await this.noteEntityService.packMany(pinnedNotes, me),
pinnedNotes: (await this.noteEntityService.packMany(pinnedNotes, me)).sort((a, b) => channel.pinnedNoteIds.indexOf(a.id) - channel.pinnedNoteIds.indexOf(b.id)),
} : {}),
};
}
Expand Down

0 comments on commit dcbaca4

Please sign in to comment.