From e9940c92214f4b70b6f8dfdf1f4dd7ce1814e67d Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 29 Apr 2018 07:01:47 +0900 Subject: [PATCH] wip --- .../desktop/views/components/notes.note.vue | 1 + .../desktop/views/components/post-form.vue | 2 +- .../views/components/sub-note-content.vue | 1 + .../app/mobile/views/components/note.vue | 5 +- .../views/components/sub-note-content.vue | 1 + src/models/note.ts | 19 ++--- src/services/note/create.ts | 77 +++++++++++-------- 7 files changed, 63 insertions(+), 43 deletions(-) diff --git a/src/client/app/desktop/views/components/notes.note.vue b/src/client/app/desktop/views/components/notes.note.vue index 217587ec6..e8fabe3c6 100644 --- a/src/client/app/desktop/views/components/notes.note.vue +++ b/src/client/app/desktop/views/components/notes.note.vue @@ -40,6 +40,7 @@

+ (この投稿は非公開です) %fa:reply% RP: diff --git a/src/client/app/desktop/views/components/post-form.vue b/src/client/app/desktop/views/components/post-form.vue index a9ce1354d..d704cdc3c 100644 --- a/src/client/app/desktop/views/components/post-form.vue +++ b/src/client/app/desktop/views/components/post-form.vue @@ -291,7 +291,7 @@ export default Vue.extend({ poll: this.poll ? (this.$refs.poll as any).get() : undefined, cw: this.useCw ? this.cw || '' : undefined, visibility: this.visibility, - visibleUserIds: this.visibleUsers.map(u => u.id), + visibleUserIds: this.visibility == 'specified' ? this.visibleUsers.map(u => u.id) : undefined, geo: this.geo ? { coordinates: [this.geo.longitude, this.geo.latitude], altitude: this.geo.altitude, diff --git a/src/client/app/desktop/views/components/sub-note-content.vue b/src/client/app/desktop/views/components/sub-note-content.vue index 51ee93cba..dd4012039 100644 --- a/src/client/app/desktop/views/components/sub-note-content.vue +++ b/src/client/app/desktop/views/components/sub-note-content.vue @@ -1,6 +1,7 @@