Merge branch 'issue-154-shorten-cw-subject' into 'develop'
Issue #154 shorten subject Closes #154 See merge request pleroma/pleroma-fe!520
This commit is contained in:
commit
3cd1deb133
2 changed files with 11 additions and 2 deletions
|
@ -36,6 +36,7 @@ const Status = {
|
|||
preview: null,
|
||||
showPreview: false,
|
||||
showingTall: this.inConversation && this.focused,
|
||||
showingLongSubject: false,
|
||||
expandingSubject: typeof this.$store.state.config.collapseMessageWithSubject === 'undefined'
|
||||
? !this.$store.state.instance.collapseMessageWithSubject
|
||||
: !this.$store.state.config.collapseMessageWithSubject,
|
||||
|
@ -130,6 +131,9 @@ const Status = {
|
|||
const lengthScore = this.status.statusnet_html.split(/<p|<br/).length + this.status.text.length / 80
|
||||
return lengthScore > 20
|
||||
},
|
||||
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