use lemmy_db_schema::source::post::{Post, PostLike};
use lemmy_db_views::post_view::PostView;
use lemmy_utils::LemmyError;
-use lemmy_websocket::{messages::SendPost, LemmyContext, UserOperation};
+use lemmy_websocket::{messages::SendPost, LemmyContext, UserOperation, UserOperationCrud};
pub(crate) async fn receive_undo_like_post(
like: &Like,
let res = PostResponse { post_view };
context.chat_server().do_send(SendPost {
- op: UserOperation::EditPost,
+ op: UserOperationCrud::EditPost,
post: res,
websocket_id: None,
});
let res = PostResponse { post_view };
context.chat_server().do_send(SendPost {
- op: UserOperation::EditPost,
+ op: UserOperationCrud::EditPost,
post: res,
websocket_id: None,
});