mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
parent
16271b0a4c
commit
16f98261f8
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user