};
use lemmy_db_views::post_view::PostView;
use lemmy_utils::{location_info, LemmyError};
-use lemmy_websocket::{messages::SendPost, LemmyContext, UserOperation};
+use lemmy_websocket::{messages::SendPost, LemmyContext, UserOperation, UserOperationCrud};
pub(crate) async fn receive_create_post(
create: Create,
let res = PostResponse { post_view };
context.chat_server().do_send(SendPost {
- op: UserOperation::CreatePost,
+ op: UserOperationCrud::CreatePost,
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,
});
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,
});