mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 00:49:17 +09:00
Update notes/featured
This commit is contained in:
parent
4a93dadc1c
commit
b56fed8ed5
@ -29,7 +29,7 @@ export default Vue.extend({
|
|||||||
return {
|
return {
|
||||||
faNewspaper,
|
faNewspaper,
|
||||||
makePromise: cursor => this.$root.api('notes/featured', {
|
makePromise: cursor => this.$root.api('notes/featured', {
|
||||||
limit: 20,
|
limit: 30,
|
||||||
}).then(notes => {
|
}).then(notes => {
|
||||||
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
||||||
return notes;
|
return notes;
|
||||||
|
@ -28,7 +28,7 @@ export default Vue.extend({
|
|||||||
this.fetching = true;
|
this.fetching = true;
|
||||||
|
|
||||||
this.$root.api('notes/featured', {
|
this.$root.api('notes/featured', {
|
||||||
limit: 20
|
limit: 30
|
||||||
}).then(notes => {
|
}).then(notes => {
|
||||||
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
||||||
this.notes = notes;
|
this.notes = notes;
|
||||||
|
@ -36,7 +36,7 @@ export default Vue.extend({
|
|||||||
this.fetching = true;
|
this.fetching = true;
|
||||||
|
|
||||||
this.$root.api('notes/featured', {
|
this.$root.api('notes/featured', {
|
||||||
limit: 20
|
limit: 30
|
||||||
}).then(notes => {
|
}).then(notes => {
|
||||||
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
||||||
this.notes = notes;
|
this.notes = notes;
|
||||||
|
@ -33,7 +33,7 @@ export const meta = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default define(meta, async (ps, user) => {
|
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);
|
const hideUserIds = await getHideUserIds(user);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user