diff options
| author | MeiMei <30769358+mei23@users.noreply.github.com> | 2019-05-12 09:37:00 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2019-05-12 09:37:00 +0900 |
| commit | 410b9ad6bcde756e5cdf13f55711199027dfc7a6 (patch) | |
| tree | 97df10c9457b3908f6a8ca432142e71bdea6e870 /src/server/activitypub | |
| parent | Fix #4875 (#4899) (diff) | |
| download | misskey-410b9ad6bcde756e5cdf13f55711199027dfc7a6.tar.gz misskey-410b9ad6bcde756e5cdf13f55711199027dfc7a6.tar.bz2 misskey-410b9ad6bcde756e5cdf13f55711199027dfc7a6.zip | |
Fix: ピン留め投稿の表示順がおかしい (#4906)
* Fix: syuilo#4904
* fix comment
Diffstat (limited to 'src/server/activitypub')
| -rw-r--r-- | src/server/activitypub/featured.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/activitypub/featured.ts b/src/server/activitypub/featured.ts index 86ec1000c7..dae72f16b6 100644 --- a/src/server/activitypub/featured.ts +++ b/src/server/activitypub/featured.ts @@ -21,7 +21,10 @@ export default async (ctx: Router.IRouterContext) => { return; } - const pinings = await UserNotePinings.find({ userId: user.id }); + const pinings = await UserNotePinings.find({ + where: { userId: user.id }, + order: { id: 'DESC' } + }); const pinnedNotes = await Promise.all(pinings.map(pining => Notes.findOne(pining.noteId).then(ensure))); |