mirror of
https://github.com/damus-io/notecrumbs.git
synced 2024-09-20 21:56:33 +00:00
bump abbrev, fix a warning
This commit is contained in:
parent
4532af25e8
commit
328c7467e7
@ -154,7 +154,7 @@ fn serve_note_html(
|
|||||||
// 4: Full content
|
// 4: Full content
|
||||||
|
|
||||||
let hostname = "https://damus.io";
|
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;
|
let content = ¬e.note.content;
|
||||||
|
|
||||||
write!(
|
write!(
|
||||||
@ -200,7 +200,7 @@ fn serve_note_html(
|
|||||||
hostname,
|
hostname,
|
||||||
nip19.to_bech32().unwrap(),
|
nip19.to_bech32().unwrap(),
|
||||||
content
|
content
|
||||||
);
|
)?;
|
||||||
|
|
||||||
Ok(Response::builder()
|
Ok(Response::builder()
|
||||||
.header(header::CONTENT_TYPE, "text/html")
|
.header(header::CONTENT_TYPE, "text/html")
|
||||||
|
Loading…
Reference in New Issue
Block a user