aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHJ <30-hj@users.noreply.git.pleroma.social>2019-07-15 21:47:45 +0000
committerHJ <30-hj@users.noreply.git.pleroma.social>2019-07-15 21:47:45 +0000
commitf734a721165537b587495498c3e7c3d80eb179e7 (patch)
tree0b65a4a51b5ca2a5267b40d61e10f235762c7507 /src
parente86f6edb7ce517bb7bd0f166ee6c6290bc304325 (diff)
parent59ade4084e2d3c7d018fec57972742a628749032 (diff)
Merge branch 'fix/respect-hide-post-stats' into 'develop'
Hide favs/rts properly when hide post stats is enabled See merge request pleroma/pleroma-fe!877
Diffstat (limited to 'src')
-rw-r--r--src/components/status/status.js5
-rw-r--r--src/components/status/status.vue2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js
index 7911d40d..3ab96997 100644
--- a/src/components/status/status.js
+++ b/src/components/status/status.js
@@ -280,6 +280,11 @@ const Status = {
},
tags () {
return this.status.tags.filter(tagObj => tagObj.hasOwnProperty('name')).map(tagObj => tagObj.name).join(' ')
+ },
+ hidePostStats () {
+ return typeof this.$store.state.config.hidePostStats === 'undefined'
+ ? this.$store.state.instance.hidePostStats
+ : this.$store.state.config.hidePostStats
}
},
components: {
diff --git a/src/components/status/status.vue b/src/components/status/status.vue
index 30969256..b825d17d 100644
--- a/src/components/status/status.vue
+++ b/src/components/status/status.vue
@@ -344,7 +344,7 @@
<transition name="fade">
<div
- v-if="isFocused && combinedFavsAndRepeatsUsers.length > 0"
+ v-if="!hidePostStats && isFocused && combinedFavsAndRepeatsUsers.length > 0"
class="favs-repeated-users"
>
<div class="stats">