Skip to content

Commit

Permalink
bump abbrev, fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jb55 committed Dec 21, 2023
1 parent 4532af2 commit 328c746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Expand Up @@ -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!(
Expand Down Expand Up @@ -200,7 +200,7 @@ fn serve_note_html(
hostname,
nip19.to_bech32().unwrap(),
content
);
)?;

Ok(Response::builder()
.header(header::CONTENT_TYPE, "text/html")
Expand Down

0 comments on commit 328c746

Please sign in to comment.