From 0955d970e5e63ab12d1d7c77333d8b115f763632 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 21 Jan 2022 14:40:35 +0100 Subject: [PATCH] Dont check for ban in MarkCommentAsRead (fixes #2045) --- crates/api/src/comment.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/api/src/comment.rs b/crates/api/src/comment.rs index 64bb7310d..bd8d3a8e9 100644 --- a/crates/api/src/comment.rs +++ b/crates/api/src/comment.rs @@ -47,13 +47,6 @@ impl Perform for MarkCommentAsRead { }) .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 if local_user_view.person.id != orig_comment.get_recipient_id() { return Err(LemmyError::from_message("no_comment_edit_allowed"));