Fixed some settings not using defaults from instance config. Made some parts of
code more readable
This commit is contained in:
parent
f62ff2d894
commit
c7514be46f
3 changed files with 19 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue