]> Untitled Git - lemmy.git/commitdiff
Dont check for ban in MarkCommentAsRead (fixes #2045) (#2054)
authorNutomic <me@nutomic.com>
Fri, 21 Jan 2022 19:46:43 +0000 (19:46 +0000)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 19:46:43 +0000 (14:46 -0500)
crates/api/src/comment.rs

index 64bb7310da3ab9e65e3b62f9e0c25749d7b47cd5..bd8d3a8e9b1efe6c5bb6b938f08900a355d8d4b7 100644 (file)
@@ -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"));