This commit is contained in:
Mateusz Gruszczyński
2026-07-28 23:53:37 +02:00
parent bc25e49bd6
commit 09669ff330
28 changed files with 412 additions and 89 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ async fn handle_socket(
.unwrap_or(false);
let password_ok = db::verify_workspace_password(&workspace, password.as_deref());
if workspace.is_private != 0 && permission.is_none() && !anonymous_token_ok {
let _ = send_error(&mut socket, "This workspace is private").await;
let _ = send_error(&mut socket, "Workspace not found").await;
return;
}
if workspace.password_hash.is_some()
+1 -1
View File
@@ -114,7 +114,7 @@ async fn handle_pad_socket(mut socket: WebSocket, state: SharedState, slug: Stri
let _ = send_pad(
&mut socket,
&PadServerMessage::Error {
message: "This note is private".into(),
message: "Note not found".into(),
},
)
.await;