};
use lemmy_db_views::comment_view::CommentView;
use lemmy_utils::{location_info, utils::scrape_text_for_mentions, LemmyError};
-use lemmy_websocket::{messages::SendComment, LemmyContext, UserOperation};
+use lemmy_websocket::{messages::SendComment, LemmyContext, UserOperation, UserOperationCrud};
pub(crate) async fn receive_create_comment(
create: Create,
};
context.chat_server().do_send(SendComment {
- op: UserOperation::CreateComment,
+ op: UserOperationCrud::CreateComment,
comment: res,
websocket_id: None,
});
};
context.chat_server().do_send(SendComment {
- op: UserOperation::EditComment,
+ op: UserOperationCrud::EditComment,
comment: res,
websocket_id: None,
});
form_id: None,
};
context.chat_server().do_send(SendComment {
- op: UserOperation::EditComment,
+ op: UserOperationCrud::EditComment,
comment: res,
websocket_id: None,
});
form_id: None,
};
context.chat_server().do_send(SendComment {
- op: UserOperation::EditComment,
+ op: UserOperationCrud::EditComment,
comment: res,
websocket_id: None,
});