damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit c948c7e23015e0987b419add24b1d712cde9069a
parent c83b0fba21951654455579fb3cf55b4ddbd08a90
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 14 Oct 2024 12:02:31 -0700

search: truncate content

sometimes its too big for search results

Changelog-Changed: Truncate fulltext search results
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Views/Search/NDBSearchView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/Search/NDBSearchView.swift b/damus/Views/Search/NDBSearchView.swift @@ -26,7 +26,7 @@ struct NDBSearchView: View { LazyVStack { ForEach(results, id: \.self) { note in - EventView(damus: damus_state, event: note) + EventView(damus: damus_state, event: note, options: [.truncate_content]) .onTapGesture { let event = note.get_inner_event(cache: damus_state.events) ?? note let thread = ThreadModel(event: event, damus_state: damus_state)