Fixed some settings not using defaults from instance config. Made some parts of

code more readable
This commit is contained in:
Henry Jameson 2018-12-18 23:31:10 +03:00
parent f62ff2d894
commit c7514be46f
3 changed files with 19 additions and 3 deletions

View file

@ -188,7 +188,9 @@ const Status = {
},
replySubject () {
if (!this.status.summary) return ''
const behavior = this.$store.state.config.subjectLineBehavior
const behavior = typeof this.$store.state.config.subjectLineBehavior === 'undefined'
? this.$store.state.instance.subjectLineBehavior
: this.$store.state.config.subjectLineBehavior
const startsWithRe = this.status.summary.match(/^re[: ]/i)
if (behavior !== 'noop' && startsWithRe || behavior === 'masto') {
return this.status.summary