mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Removed unused voted var from author component
This commit is contained in:
parent
8792f02932
commit
29dac5c5a3
@ -141,21 +141,12 @@ export default {
|
||||
trunc: { type: Number, default: null },
|
||||
showAuthorPopover: { type: Boolean, default: true }
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
voted: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
itsMe() {
|
||||
return this.author.slug === this.$store.getters['auth/user'].slug
|
||||
},
|
||||
fanCount() {
|
||||
let count = Number(this.author.followedByCount) || 0
|
||||
if (this.voted) {
|
||||
// NOTE: this is used for presentation
|
||||
count += 1
|
||||
}
|
||||
return count
|
||||
},
|
||||
author() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user