Fix defalut note visibility setting (#5881)
* Fix default note visibility setting * refactor * missing translation * fix
This commit is contained in:
@ -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() {
|
||||
|
Reference in New Issue
Block a user