From b56fed8ed5806c5fec8711db0413f95f33d3834e Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 26 Feb 2019 14:42:24 +0900 Subject: [PATCH] Update notes/featured --- src/client/app/common/views/deck/deck.featured-column.vue | 2 +- src/client/app/desktop/views/home/featured.vue | 2 +- src/client/app/mobile/views/pages/featured.vue | 2 +- src/server/api/endpoints/notes/featured.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/app/common/views/deck/deck.featured-column.vue b/src/client/app/common/views/deck/deck.featured-column.vue index 776957cc4..d2c44e74c 100644 --- a/src/client/app/common/views/deck/deck.featured-column.vue +++ b/src/client/app/common/views/deck/deck.featured-column.vue @@ -29,7 +29,7 @@ export default Vue.extend({ return { faNewspaper, makePromise: cursor => this.$root.api('notes/featured', { - limit: 20, + limit: 30, }).then(notes => { notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); return notes; diff --git a/src/client/app/desktop/views/home/featured.vue b/src/client/app/desktop/views/home/featured.vue index 07f9088c2..171902328 100644 --- a/src/client/app/desktop/views/home/featured.vue +++ b/src/client/app/desktop/views/home/featured.vue @@ -28,7 +28,7 @@ export default Vue.extend({ this.fetching = true; this.$root.api('notes/featured', { - limit: 20 + limit: 30 }).then(notes => { notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); this.notes = notes; diff --git a/src/client/app/mobile/views/pages/featured.vue b/src/client/app/mobile/views/pages/featured.vue index 684b79f8b..667e199b5 100644 --- a/src/client/app/mobile/views/pages/featured.vue +++ b/src/client/app/mobile/views/pages/featured.vue @@ -36,7 +36,7 @@ export default Vue.extend({ this.fetching = true; this.$root.api('notes/featured', { - limit: 20 + limit: 30 }).then(notes => { notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); this.notes = notes; diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts index 0bf583b54..3648b307d 100644 --- a/src/server/api/endpoints/notes/featured.ts +++ b/src/server/api/endpoints/notes/featured.ts @@ -33,7 +33,7 @@ export const meta = { }; export default define(meta, async (ps, user) => { - const day = 1000 * 60 * 60 * 24 * 2; + const day = 1000 * 60 * 60 * 24 * 3; // 3日前まで const hideUserIds = await getHideUserIds(user);