Disable like button if post is not public

This commit is contained in:
silverpill 2022-01-14 19:17:18 +00:00
parent b39f4270d2
commit 9364b2ff55

View file

@ -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() {