chore: remove CLAUDE.md and stale config files

This commit is contained in:
Dorian
2026-04-12 12:11:00 -04:00
parent 29ff413559
commit 18284e1592
13 changed files with 198 additions and 249 deletions
@@ -9,6 +9,7 @@ impl ApiHandler {
#[derive(serde::Deserialize)]
struct Incoming {
from_pubkey: Option<String>,
from_name: Option<String>,
message: Option<String>,
signature: Option<String>,
#[serde(default)]
@@ -67,7 +68,8 @@ impl ApiHandler {
tracing::info!("Received message from {}: {}", safe_from, safe_msg);
let clean_from = sanitize_html(from);
let clean_msg = sanitize_html(&plaintext);
node_msg::store_received(&clean_from, &clean_msg).await;
let clean_name = incoming.from_name.as_deref().map(sanitize_html);
node_msg::store_received(&clean_from, &clean_msg, clean_name.as_deref()).await;
}
Ok(build_response(StatusCode::OK, "application/json", hyper::Body::from(r#"{"ok":true}"#)))
}