use lemmy_db_schema::source::{comment::*, moderator::*};
use lemmy_db_views::comment_view::CommentView;
use lemmy_utils::{ApiError, ConnectionId, LemmyError};
-use lemmy_websocket::{messages::SendComment, LemmyContext, UserOperation};
+use lemmy_websocket::{messages::SendComment, LemmyContext, UserOperationCrud};
#[async_trait::async_trait(?Send)]
impl PerformCrud for DeleteComment {
};
context.chat_server().do_send(SendComment {
- op: UserOperation::DeleteComment,
+ op: UserOperationCrud::DeleteComment,
comment: res.clone(),
websocket_id,
});
};
context.chat_server().do_send(SendComment {
- op: UserOperation::RemoveComment,
+ op: UserOperationCrud::RemoveComment,
comment: res.clone(),
websocket_id,
});