plugins/carddav: filter contacts with EMAIL/FN set
Don't issue a CardDAV query with any filter, Google won't return any result.
This commit is contained in:
parent
243e090bcb
commit
1dc00fa023
2 changed files with 6 additions and 0 deletions
|
@ -121,6 +121,9 @@ func newPlugin(srv *koushin.Server) (koushin.Plugin, error) {
|
|||
DataRequest: carddav.AddressDataRequest{
|
||||
Props: []string{vcard.FieldFormattedName, vcard.FieldEmail},
|
||||
},
|
||||
PropFilters: []carddav.PropFilter{{
|
||||
Name: vcard.FieldEmail,
|
||||
}},
|
||||
}
|
||||
addrs, err := c.QueryAddressBook(addressBook.Path, &query)
|
||||
if err != nil {
|
||||
|
|
|
@ -38,6 +38,9 @@ func registerRoutes(p *plugin) {
|
|||
vcard.FieldUID,
|
||||
},
|
||||
},
|
||||
PropFilters: []carddav.PropFilter{{
|
||||
Name: vcard.FieldFormattedName,
|
||||
}},
|
||||
}
|
||||
|
||||
if queryText != "" {
|
||||
|
|
Loading…
Reference in a new issue