bump abbrev, fix a warning

This commit is contained in:
William Casarin 2023-12-20 15:39:38 -08:00
parent 4532af25e8
commit 328c7467e7

View File

@ -154,7 +154,7 @@ fn serve_note_html(
// 4: Full content
let hostname = "https://damus.io";
let abbrev_content = abbreviate(&note.note.content, 20);
let abbrev_content = abbreviate(&note.note.content, 64);
let content = &note.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")