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 <jb55@jb55.com>
This commit is contained in:
William Casarin
2024-09-27 13:49:41 -07:00
parent 5228d8cf4d
commit 262bbf26ea

View File

@@ -285,7 +285,7 @@ func search_profiles<Y>(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