diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2020-02-08 20:02:15 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-08 20:02:15 +0900 |
| commit | b2859bcd2a5145843b5ae2e024fa1b9e9549c0b0 (patch) | |
| tree | 4447cfec4bad31ab67126ba113f6e507ae30b4ed /src/client/components/post-form.vue | |
| parent | 12.3.0 (diff) | |
| download | misskey-b2859bcd2a5145843b5ae2e024fa1b9e9549c0b0.tar.gz misskey-b2859bcd2a5145843b5ae2e024fa1b9e9549c0b0.tar.bz2 misskey-b2859bcd2a5145843b5ae2e024fa1b9e9549c0b0.zip | |
Fix defalut note visibility setting (#5881)
* Fix default note visibility setting
* refactor
* missing translation
* fix
Diffstat (limited to 'src/client/components/post-form.vue')
| -rw-r--r-- | src/client/components/post-form.vue | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index 3586223f7e..166b3c7c5f 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -217,7 +217,7 @@ export default Vue.extend({ // デフォルト公開範囲 this.applyVisibility(this.$store.state.settings.rememberNoteVisibility ? this.$store.state.device.visibility : this.$store.state.settings.defaultNoteVisibility); - this.localOnly = this.$store.state.settings.rememberNoteVisibility ? this.$store.state.device.localOnly : false; + this.localOnly = this.$store.state.settings.rememberNoteVisibility ? this.$store.state.device.localOnly : this.$store.state.settings.defaultNoteLocalOnly; // 公開以外へのリプライ時は元の公開範囲を引き継ぐ if (this.reply && ['home', 'followers', 'specified'].includes(this.reply.visibility)) { @@ -398,8 +398,7 @@ export default Vue.extend({ }, applyVisibility(v: string) { - if (!['public', 'home', 'followers', 'specified'].includes(v)) v = 'public'; // v11互換性のため - this.visibility = v; + this.visibility = ['public', 'home', 'followers', 'specified'].includes(v) ? v : 'public'; // v11互換性のため }, addVisibleUser() { |