aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2019-02-04 17:29:58 +0000
committerShpuld Shpludson <shp@cock.li>2019-02-04 17:29:58 +0000
commit3cd1deb133926281920f10c1ddd6eb694c09f44d (patch)
tree967f2024cb0b1b37e160a9cd21c4bede459ed916 /src/components/status/status.js
parentd5757d44e5596f7e3de59d5420bb30b237a0533c (diff)
parent9d72c7e1bd935b4a308fe2221344edf156288894 (diff)
Merge branch 'issue-154-shorten-cw-subject' into 'develop'
Issue #154 shorten subject Closes #154 See merge request pleroma/pleroma-fe!520
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 682231c4..65ddcb9f 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -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)
},