Disable like button if post is not public
This commit is contained in:
parent
b39f4270d2
commit
9364b2ff55
1 changed files with 1 additions and 1 deletions
|
@ -330,7 +330,7 @@ export default class PostComponent extends Vue {
|
|||
}
|
||||
|
||||
canLike(): boolean {
|
||||
return this.store.currentUser !== null
|
||||
return this.store.currentUser !== null && this.post.visibility === "public"
|
||||
}
|
||||
|
||||
async toggleLike() {
|
||||
|
|
Loading…
Reference in a new issue