Skip to content

Commit

Permalink
fix: Add logic to hide Block User btn if comment is by same user
Browse files Browse the repository at this point in the history
  • Loading branch information
Mxchaeltrxn committed Oct 17, 2020
1 parent ca938fb commit d806a07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/media.pug
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,9 @@ block content
if isUploaderOrAdmin || ( user && comment.commenter._id == user._id )
a.delete-comment-thread-button(style="margin-left:9px;cursor:pointer;" commentId=comment._id) Delete

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


Expand Down

0 comments on commit d806a07

Please sign in to comment.