Dont check for ban in MarkCommentAsRead (fixes #2045)

mark_as_read_ban
Felix Ableitner 2022-01-21 14:40:35 +01:00
parent 16271b0a4c
commit 0955d970e5
1 changed files with 0 additions and 7 deletions

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"));