aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authordave <starpumadev@gmail.com>2019-02-04 09:28:14 -0500
committerdave <starpumadev@gmail.com>2019-02-04 09:28:14 -0500
commit9d72c7e1bd935b4a308fe2221344edf156288894 (patch)
tree8dbcb5eb658771ff5f3a63b8b732f00467336df5 /src/components/status/status.js
parent887f1def2e1b8c052ddf2425f192502211c3013e (diff)
#154 - update long subject determine logic, meaningful variable names
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 4dd0345c..8b4c50f7 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -36,7 +36,7 @@ const Status = {
preview: null,
showPreview: false,
showingTall: this.inConversation && this.focused,
- showingTallSubject: false,
+ showingLongSubject: false,
expandingSubject: typeof this.$store.state.config.collapseMessageWithSubject === 'undefined'
? !this.$store.state.instance.collapseMessageWithSubject
: !this.$store.state.config.collapseMessageWithSubject,
@@ -130,9 +130,8 @@ const Status = {
const lengthScore = this.status.statusnet_html.split(/<p|<br/).length + this.status.text.length / 80
return lengthScore > 20
},
- tallSubject () {
- const lengthScore = this.status.summary.length / 80
- return lengthScore > 10
+ longSubject () {
+ return this.status.summary.length > 900
},
isReply () {
return !!(this.status.in_reply_to_status_id && this.status.in_reply_to_user_id)