From ba783bfdd03f55277874e6152d9a4cabf3e97e23 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 5992fee83..65826d932 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 f11f901d7da6d9edd7939bea467541b69c014e0c 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 02d810ded..d881fe01c 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 98ed2bddc..d684b47e4 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 ac4fdc0e10d639f5c2a2c2750362e952b50d3c1e 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 001b69255..be2d7fce8 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 fa5efbc93..d29fbdc1a 100644 --- a/src/client/app/desktop/views/components/ui.vue +++ b/src/client/app/desktop/views/components/ui.vue @@ -1,6 +1,6 @@