From 328c7467e73013e7dc0e21fd1b4a5f4581033213 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 20 Dec 2023 15:39:38 -0800 Subject: [PATCH] bump abbrev, fix a warning --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 68539db..ff1718f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -154,7 +154,7 @@ fn serve_note_html( // 4: Full content let hostname = "https://damus.io"; - let abbrev_content = abbreviate(¬e.note.content, 20); + let abbrev_content = abbreviate(¬e.note.content, 64); let content = ¬e.note.content; write!( @@ -200,7 +200,7 @@ fn serve_note_html( hostname, nip19.to_bech32().unwrap(), content - ); + )?; Ok(Response::builder() .header(header::CONTENT_TYPE, "text/html")