Skip to content

Commit bd363ba

Browse files
committed
Update visibility condition in Votes.vue
Replaced hard coded visibility condition with check for whether a post is masked. This change will ensure that post content and images are hidden as expected when a post's "masked" property is set to true.
1 parent 88447fe commit bd363ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Pages/Votes.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ onMounted(async () => {
9898
<p class="mb-1 text-xs text-gray-400">{{ post.updated_at }}</p>
9999
<div class="flex justify-between gap-2">
100100
<Profile :address="post.created_by" />
101-
<p v-if="true" class="flex-grow flex-wrap text-lg truncate">
101+
<p v-if="!post.masked" class="flex-grow flex-wrap text-lg truncate">
102102
{{ post.stripedMarkdown }}
103103
</p>
104104
<div
@@ -114,7 +114,7 @@ onMounted(async () => {
114114
</div>
115115
</div>
116116
</div>
117-
<figure v-if="!isMasked && post.image">
117+
<figure v-if="!post.masked && post.image">
118118
<img
119119
:src="post.image"
120120
class="rounded max-w-20 max-h-20 object-cover object-center"

0 commit comments

Comments
 (0)