From 262bbf26ea282003356eeef2f5d8acc57510516f Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 27 Sep 2024 13:49:41 -0700 Subject: [PATCH] profiles: expand search results to 128 This should be plenty Fixes: https://github.com/damus-io/damus/issues/2547 Changelog-Changed: Expanded profile search results to 128 Changelog-Fixed: Friend profiles will now more likely show up in profile search Signed-off-by: William Casarin --- damus/Views/SearchResultsView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Views/SearchResultsView.swift b/damus/Views/SearchResultsView.swift index 47cc2cdb..2dbd8134 100644 --- a/damus/Views/SearchResultsView.swift +++ b/damus/Views/SearchResultsView.swift @@ -285,7 +285,7 @@ func search_profiles(profiles: Profiles, contacts: Contacts, search: String, return [pk] } - return profiles.search(search, limit: 10, txn: txn).sorted { a, b in + return profiles.search(search, limit: 500, txn: txn).sorted { a, b in let aFriendTypePriority = get_friend_type(contacts: contacts, pubkey: a)?.priority ?? 0 let bFriendTypePriority = get_friend_type(contacts: contacts, pubkey: b)?.priority ?? 0