aboutsummaryrefslogtreecommitdiff
path: root/src/components/status/status.js
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-08-12 16:14:35 +0000
committerlambda <pleromagit@rogerbraun.net>2018-08-12 16:14:35 +0000
commit25be51e2c1d9ca7ab112682c59ffadd6d1b63276 (patch)
treeb04030b899850b503097c2df1e7fde2a13043a7f /src/components/status/status.js
parentdb6ff4824afa7adca1f3b633278e9ed033d8671d (diff)
parent27adde9887d7205703ed461560f3272f6709b83b (diff)
Merge branch 'feature/accountHighlight' into 'develop'
Account highlight See merge request pleroma/pleroma-fe!285
Diffstat (limited to 'src/components/status/status.js')
-rw-r--r--src/components/status/status.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index eb7d24d6..a2d6f41f 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -6,6 +6,7 @@ import PostStatusForm from '../post_status_form/post_status_form.vue'
import UserCardContent from '../user_card_content/user_card_content.vue'
import StillImage from '../still-image/still-image.vue'
import { filter, find } from 'lodash'
+import { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js'
const Status = {
name: 'Status',
@@ -34,6 +35,25 @@ const Status = {
muteWords () {
return this.$store.state.config.muteWords
},
+ repeaterClass () {
+ const user = this.statusoid.user
+ return highlightClass(user)
+ },
+ userClass () {
+ const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user
+ return highlightClass(user)
+ },
+ repeaterStyle () {
+ const user = this.statusoid.user
+ const highlight = this.$store.state.config.highlight
+ return highlightStyle(highlight[user.screen_name])
+ },
+ userStyle () {
+ if (this.noHeading) return
+ const user = this.retweet ? (this.statusoid.retweeted_status.user) : this.statusoid.user
+ const highlight = this.$store.state.config.highlight
+ return highlightStyle(highlight[user.screen_name])
+ },
hideAttachments () {
return (this.$store.state.config.hideAttachments && !this.inConversation) ||
(this.$store.state.config.hideAttachmentsInConv && this.inConversation)