Merge pull request #516 from dtonon/feature/limit_3_hints

Limit njump nevents to 3 relay hints to have a shorter URL
This commit is contained in:
Michael Dilger 2023-09-30 06:50:26 +13:00 committed by GitHub
commit e6d10fbf2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,6 +401,7 @@ fn render_note_inner(
Ok(vec) => vec
.iter()
.map(|(url, _)| url.to_unchecked_url())
.take(3) // Limit to 3 relay hints
.collect(),
Err(_) => vec![],
},