Dont check for ban in MarkCommentAsRead (fixes #2045) (#2054)

This commit is contained in:
Nutomic 2022-01-21 19:46:43 +00:00 committed by GitHub
parent 16271b0a4c
commit 16f98261f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,13 +47,6 @@ impl Perform for MarkCommentAsRead {
}) })
.await??; .await??;
check_community_ban(
local_user_view.person.id,
orig_comment.community.id,
context.pool(),
)
.await?;
// Verify that only the recipient can mark as read // Verify that only the recipient can mark as read
if local_user_view.person.id != orig_comment.get_recipient_id() { if local_user_view.person.id != orig_comment.get_recipient_id() {
return Err(LemmyError::from_message("no_comment_edit_allowed")); return Err(LemmyError::from_message("no_comment_edit_allowed"));