Skip to content

Commit 3b7aa62

Browse files
committed
fix: Add logic to hide Block User btn if comment is by same user
1 parent 901d86a commit 3b7aa62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

views/media.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,9 +779,9 @@ block content
779779
if isUploaderOrAdmin || ( user && comment.commenter._id == user._id )
780780
a.delete-comment-thread-button(style="margin-left:9px;cursor:pointer;" commentId=comment._id) Delete
781781

782-
if isUploader && !comment.commenter.isBlocked
782+
if isUploader && !comment.commenter.isBlocked && ( user && comment.commenter._id != user._id )
783783
a.block-user-button(style="margin-left:9px;cursor:pointer;" blockedusername=comment.commenter.channelUrl) Block User
784-
if isUploader && comment.commenter.isBlocked
784+
if isUploader && comment.commenter.isBlocked && ( user && comment.commenter._id != user._id )
785785
a.unblock-user-button(style="margin-left:9px;cursor:pointer;" blockedusername=comment.commenter.channelUrl) Unblock User
786786

787787

0 commit comments

Comments
 (0)