From f9d697128acc1ffd844afe43e8ac1441f3aaa895 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 17 Apr 2019 04:32:04 +0900 Subject: [PATCH 01/11] Update schemas.ts --- src/server/api/openapi/schemas.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server/api/openapi/schemas.ts b/src/server/api/openapi/schemas.ts index 5992fee835..65826d9321 100644 --- a/src/server/api/openapi/schemas.ts +++ b/src/server/api/openapi/schemas.ts @@ -1,4 +1,3 @@ - export const schemas = { Error: { type: 'object', From 946c3a25b96a8f9a33d77e94394916aa0298e4a8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 17 Apr 2019 07:25:34 +0900 Subject: [PATCH 02/11] Clean up --- src/client/app/common/scripts/note-subscriber.ts | 1 - src/models/repositories/note.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/client/app/common/scripts/note-subscriber.ts b/src/client/app/common/scripts/note-subscriber.ts index 02d810ded9..d881fe01ce 100644 --- a/src/client/app/common/scripts/note-subscriber.ts +++ b/src/client/app/common/scripts/note-subscriber.ts @@ -137,7 +137,6 @@ export default prop => ({ Vue.set(this.$_ns_target, 'deletedAt', body.deletedAt); Vue.set(this.$_ns_target, 'renote', null); this.$_ns_target.text = null; - this.$_ns_target.tags = []; this.$_ns_target.fileIds = []; this.$_ns_target.poll = null; this.$_ns_target.geo = null; diff --git a/src/models/repositories/note.ts b/src/models/repositories/note.ts index 98ed2bddc1..d684b47e48 100644 --- a/src/models/repositories/note.ts +++ b/src/models/repositories/note.ts @@ -178,12 +178,11 @@ export class NoteRepository extends Repository { name: In(reactionEmojis), host: host }) : [], - tags: note.tags, fileIds: note.fileIds, files: DriveFiles.packMany(note.fileIds), replyId: note.replyId, renoteId: note.renoteId, - uri: note.uri, + uri: note.uri || undefined, ...(opts.detail ? { reply: note.replyId ? this.pack(note.replyId, meId, { From 85959a3b9bef93e9b26e6b58c49145d6f67ea571 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 17 Apr 2019 14:30:31 +0900 Subject: [PATCH 03/11] Fix #4721 Fix #4722 --- .../views/components/settings/settings.vue | 8 ++--- .../app/desktop/views/components/ui.vue | 7 ++-- src/client/app/store.ts | 1 + src/server/api/endpoints/i/update.ts | 33 +++++++++++-------- 4 files changed, 26 insertions(+), 23 deletions(-) diff --git a/src/client/app/common/views/components/settings/settings.vue b/src/client/app/common/views/components/settings/settings.vue index 001b692551..be2d7fce85 100644 --- a/src/client/app/common/views/components/settings/settings.vue +++ b/src/client/app/common/views/components/settings/settings.vue @@ -525,15 +525,11 @@ export default Vue.extend({ this.$chooseDriveFile({ multiple: false }).then(file => { - this.$root.api('i/update', { - wallpaperId: file.id - }); + this.$store.dispatch('settings/set', { key: 'wallpaper', value: file.url }); }); }, deleteWallpaper() { - this.$root.api('i/update', { - wallpaperId: null - }); + this.$store.dispatch('settings/set', { key: 'wallpaper', value: null }); }, checkForUpdate() { this.checkingForUpdate = true; diff --git a/src/client/app/desktop/views/components/ui.vue b/src/client/app/desktop/views/components/ui.vue index fa5efbc93e..d29fbdc1a5 100644 --- a/src/client/app/desktop/views/components/ui.vue +++ b/src/client/app/desktop/views/components/ui.vue @@ -1,6 +1,6 @@