mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-19 03:52:52 +09:00
[Client] Improve featured notes page
This commit is contained in:
parent
f20b4a8ac1
commit
7c7fdfd077
@ -44,6 +44,7 @@ export default Vue.extend({
|
||||
this.$root.api('notes/featured', {
|
||||
limit: 20,
|
||||
}).then(notes => {
|
||||
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
||||
res(notes);
|
||||
this.fetching = false;
|
||||
this.$emit('loaded');
|
||||
|
@ -30,6 +30,7 @@ export default Vue.extend({
|
||||
this.$root.api('notes/featured', {
|
||||
limit: 20
|
||||
}).then(notes => {
|
||||
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
||||
this.notes = notes;
|
||||
this.fetching = false;
|
||||
|
||||
|
@ -38,6 +38,7 @@ export default Vue.extend({
|
||||
this.$root.api('notes/featured', {
|
||||
limit: 20
|
||||
}).then(notes => {
|
||||
notes.sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime());
|
||||
this.notes = notes;
|
||||
this.fetching = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user