Skip to content

Commit e2bc3c6

Browse files
authored
Cleanup the Hide Profile Pictures in Comments code (#5625)
1 parent 9a84777 commit e2bc3c6

File tree

1 file changed

+24
-28
lines changed

1 file changed

+24
-28
lines changed

src/renderer/components/watch-video-comments/watch-video-comments.vue

+24-28
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,18 @@
6464
tabindex="-1"
6565
>
6666
<!-- Hide comment photo only if it isn't the video uploader -->
67-
<template v-if="hideCommentPhotos && !comment.isOwner">
68-
<div
69-
class="commentThumbnailHidden"
70-
>
71-
{{ comment.author.substr(1, 1) }}
72-
</div>
73-
</template>
74-
<template v-else>
75-
<img
76-
:src="comment.authorThumb"
77-
alt=""
78-
class="commentThumbnail"
79-
>
80-
</template>
67+
<div
68+
v-if="hideCommentPhotos && !comment.isOwner"
69+
class="commentThumbnailHidden"
70+
>
71+
{{ comment.author.substring(1, 2) }}
72+
</div>
73+
<img
74+
v-else
75+
:src="comment.authorThumb"
76+
alt=""
77+
class="commentThumbnail"
78+
>
8179
</router-link>
8280
<p
8381
v-if="comment.isPinned"
@@ -186,20 +184,18 @@
186184
tabindex="-1"
187185
>
188186
<!-- Hide comment photo only if it isn't the video uploader -->
189-
<template v-if="hideCommentPhotos && !reply.isOwner">
190-
<div
191-
class="commentThumbnailHidden"
192-
>
193-
{{ reply.author.substr(1, 1) }}
194-
</div>
195-
</template>
196-
<template v-else>
197-
<img
198-
:src="reply.authorThumb"
199-
alt=""
200-
class="commentThumbnail"
201-
>
202-
</template>
187+
<div
188+
v-if="hideCommentPhotos && !reply.isOwner"
189+
class="commentThumbnailHidden"
190+
>
191+
{{ reply.author.substring(1, 2) }}
192+
</div>
193+
<img
194+
v-else
195+
:src="reply.authorThumb"
196+
alt=""
197+
class="commentThumbnail"
198+
>
203199
</router-link>
204200
<p class="commentAuthorWrapper">
205201
<router-link

0 commit comments

Comments
 (0)