#154 - update long subject determine logic, meaningful variable names
This commit is contained in:
parent
887f1def2e
commit
9d72c7e1bd
2 changed files with 7 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue