Skip to content

Commit

Permalink
Update zomes/hc_zome_trust_atom/src/trust_atom.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Harlan T Wood <[email protected]>
  • Loading branch information
dauphin3 and harlantwood authored Mar 1, 2022
1 parent 6a5b9a9 commit 6c73464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zomes/hc_zome_trust_atom/src/trust_atom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn create_link_tag(link_direction: &LinkDirection, chunk_options: &[Option<Strin
if let Some(content) = chunk_options[0] {
if content.len() > 900 {
let mut max_content = content.clone();
max_content.truncate(900);
max_content.truncate(898); // leave 2 bytes for `…`
max_content.push_str("…");
chunks.push(max_content);
}
Expand Down

0 comments on commit 6c73464

Please sign in to comment.