Skip to content

Commit

Permalink
Cleanup the Hide Profile Pictures in Comments code (#5625)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Sep 2, 2024
1 parent 9a84777 commit e2bc3c6
Showing 1 changed file with 24 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,18 @@
tabindex="-1"
>
<!-- Hide comment photo only if it isn't the video uploader -->
<template v-if="hideCommentPhotos && !comment.isOwner">
<div
class="commentThumbnailHidden"
>
{{ comment.author.substr(1, 1) }}
</div>
</template>
<template v-else>
<img
:src="comment.authorThumb"
alt=""
class="commentThumbnail"
>
</template>
<div
v-if="hideCommentPhotos && !comment.isOwner"
class="commentThumbnailHidden"
>
{{ comment.author.substring(1, 2) }}
</div>
<img
v-else
:src="comment.authorThumb"
alt=""
class="commentThumbnail"
>
</router-link>
<p
v-if="comment.isPinned"
Expand Down Expand Up @@ -186,20 +184,18 @@
tabindex="-1"
>
<!-- Hide comment photo only if it isn't the video uploader -->
<template v-if="hideCommentPhotos && !reply.isOwner">
<div
class="commentThumbnailHidden"
>
{{ reply.author.substr(1, 1) }}
</div>
</template>
<template v-else>
<img
:src="reply.authorThumb"
alt=""
class="commentThumbnail"
>
</template>
<div
v-if="hideCommentPhotos && !reply.isOwner"
class="commentThumbnailHidden"
>
{{ reply.author.substring(1, 2) }}
</div>
<img
v-else
:src="reply.authorThumb"
alt=""
class="commentThumbnail"
>
</router-link>
<p class="commentAuthorWrapper">
<router-link
Expand Down

0 comments on commit e2bc3c6

Please sign in to comment.