From 37daff6d619765c11cc497dae349a9a751b5552e Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 19 Dec 2018 06:04:59 +0900 Subject: [PATCH] [Client] Fix #2764 --- src/client/app/desktop/views/pages/user/user.photos.vue | 7 ++++++- src/client/app/mobile/views/pages/user/home.photos.vue | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/client/app/desktop/views/pages/user/user.photos.vue b/src/client/app/desktop/views/pages/user/user.photos.vue index d2723d2cf3..b147a6ab39 100644 --- a/src/client/app/desktop/views/pages/user/user.photos.vue +++ b/src/client/app/desktop/views/pages/user/user.photos.vue @@ -24,9 +24,14 @@ export default Vue.extend({ }; }, mounted() { + const image = [ + 'image/jpeg', + 'image/png', + 'image/gif' + ]; this.$root.api('users/notes', { userId: this.user.id, - withFiles: true, + fileType: image, limit: 9, untilDate: new Date().getTime() + 1000 * 86400 * 365 }).then(notes => { diff --git a/src/client/app/mobile/views/pages/user/home.photos.vue b/src/client/app/mobile/views/pages/user/home.photos.vue index 4fb5b90ff2..bbd9c79631 100644 --- a/src/client/app/mobile/views/pages/user/home.photos.vue +++ b/src/client/app/mobile/views/pages/user/home.photos.vue @@ -26,9 +26,14 @@ export default Vue.extend({ }; }, mounted() { + const image = [ + 'image/jpeg', + 'image/png', + 'image/gif' + ]; this.$root.api('users/notes', { userId: this.user.id, - withFiles: true, + fileType: image, limit: 6, untilDate: new Date().getTime() + 1000 * 86400 * 365 }).then(notes => {