aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/carddav/plugin.go3
-rw-r--r--plugins/carddav/routes.go3
2 files changed, 6 insertions, 0 deletions
diff --git a/plugins/carddav/plugin.go b/plugins/carddav/plugin.go
index a77762b..947a754 100644
--- a/plugins/carddav/plugin.go
+++ b/plugins/carddav/plugin.go
@@ -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 {
diff --git a/plugins/carddav/routes.go b/plugins/carddav/routes.go
index 2f33852..45a6237 100644
--- a/plugins/carddav/routes.go
+++ b/plugins/carddav/routes.go
@@ -38,6 +38,9 @@ func registerRoutes(p *plugin) {
vcard.FieldUID,
},
},
+ PropFilters: []carddav.PropFilter{{
+ Name: vcard.FieldFormattedName,
+ }},
}
if queryText != "" {