aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2018-12-18 23:31:10 +0300
committerHenry Jameson <me@hjkos.com>2018-12-18 23:31:10 +0300
commitc7514be46fd9dbffdeb92cd01799a8dc6497011b (patch)
treec62555a7f69877d5e86dec483d333025df0c6175 /src/components/status/status.js
parentf62ff2d894d87c7e9c200687eb2a91bcb111e7e1 (diff)
Fixed some settings not using defaults from instance config. Made some parts of
code more readable
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 47a62fdf..e683056f 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -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