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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user