mirror of
https://github.com/Ferrite-iOS/Ferrite.git
synced 2026-01-11 20:10:27 +00:00
Sources: Add queryFirstLetter param
Stopgap for index-based sources. For example, the keyword "John" will be converted to "j" for sources that use "/j/John". Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
42e202b207
commit
d8107cb5b6
1 changed files with 2 additions and 1 deletions
|
|
@ -185,7 +185,8 @@ class ScrapingViewModel: ObservableObject {
|
|||
// Initial params dict to reference
|
||||
// More params are added here as needed
|
||||
var params: [String: String] = [
|
||||
"query": encodedQuery
|
||||
"query": encodedQuery,
|
||||
"queryFirstLetter": encodedQuery.first.map { String($0).lowercased() } ?? ""
|
||||
]
|
||||
|
||||
switch preferredParser {
|
||||
|
|
|
|||
Loading…
Reference in a new issue