Update notes/featured

This commit is contained in:
syuilo 2019-02-26 14:42:24 +09:00
parent 4a93dadc1c
commit b56fed8ed5
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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);