Skip to content

Commit

Permalink
ウェルカムページの不要なfeaturedリクエストを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Aug 27, 2023
1 parent bc4080f commit e7dbbdc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
12 changes: 0 additions & 12 deletions src/client/app/desktop/views/pages/welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export default Vue.extend({
name: 'Misskey',
description: '',
announcements: [],
photos: []
};
},
Expand All @@ -108,17 +107,6 @@ export default Vue.extend({
this.$root.api('stats', {}, false, true).then((stats: any) => {
this.stats = stats;
});
const image = ['image/jpeg','image/png','image/apng','image/gif','image/webp', 'image/avif'];
this.$root.api('notes/featured', {
fileType: image,
limit: 6,
excludeNsfw: true,
}, false, true).then((notes: any[]) => {
const files = concat(notes.map((n: any): any[] => n.files));
this.photos = files.filter(f => image.includes(f.type)).slice(0, 6);
});
},
methods: {
Expand Down
12 changes: 0 additions & 12 deletions src/client/app/mobile/views/pages/welcome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export default Vue.extend({
host: toUnicode(host),
name: 'Misskey',
description: '',
photos: [],
announcements: []
};
},
Expand All @@ -58,17 +57,6 @@ export default Vue.extend({
this.$root.api('stats', {}, false, true).then((stats: any) => {
this.stats = stats;
});
const image = ['image/jpeg','image/png','image/apng','image/gif','image/webp', 'image/avif'];
this.$root.api('notes/featured', {
fileType: image,
limit: 6,
excludeNsfw: true,
}, false, true).then((notes: any[]) => {
const files = concat(notes.map((n: any): any[] => n.files));
this.photos = files.filter(f => image.includes(f.type)).slice(0, 6);
});
},
methods: {
signin() {
Expand Down

0 comments on commit e7dbbdc

Please sign in to comment.