summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV
Commit message (Collapse)AuthorAgeFilesLines
* IAddressBook: add isShared and isSystemAddressBookGeorg Ehrke2020-08-051-6/+23
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Merge pull request #22062 from ↵blizzz2020-08-041-36/+38
|\ | | | | | | | | nextcloud/fix/noid/displayname-in-incoming-remote-share-notification fix display of remote users in incoming share notifications
| * Short php syntaxJoas Schilling2020-08-031-5/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * coding style fixesArthur Schiwon2020-07-301-34/+35
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * fix check for Cloud ID, missing return statements, wrong param useArthur Schiwon2020-07-301-2/+3
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Implement Contacts Backend for Unified SearchGeorg Ehrke2020-08-031-8/+53
|/ | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Update system addressbook card only when there was a change based on a ↵Morris Jobke2020-07-091-0/+14
| | | | | | | | cached etag Due to our old and new hook system the card dav backend listens to old and new hooks. This triggers this code multiple times and always causes an update. With this change we cache the etag during a request and only trigger the update if the etag has changed. This does not catches all not needed updates, but it does not need another round trip to the database and still covers most cases where multiple attributes are updated during one single request. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Reduce load of the contacts search when we know it can't matchJoas Schilling2020-06-151-6/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix pagination of contacts searchJoas Schilling2020-06-101-17/+27
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Rename app-generated to z-app-generated, because macOS Contacts supports ↵Georg Ehrke2020-05-071-1/+1
| | | | | | only one and will pick the first one alphabetically Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Temporary fix contacts searchJoas Schilling2020-04-291-6/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-2910-1/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use paginated search for contactsJulius Härtl2020-04-232-0/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #19901 from nextcloud/bugfix/noid/vcard-photo-handlingRoeland Jago Douma2020-04-172-15/+77
|\ | | | | Improved vcard photo handling
| * Update Contact Size after removing photoGeorg Ehrke2020-04-151-6/+38
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
| * Don't populate the PHOTO property when it's not an imageJoas Schilling2020-04-152-3/+31
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Always transform the etag and read the dataJoas Schilling2020-04-151-0/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Use table variable everywhereJoas Schilling2020-04-151-7/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update list of multiple propertiesJohn Molakvoæ (skjnldsv)2020-04-171-13/+2
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add visibility to all constantsChristoph Wurst2020-04-102-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-106-20/+20
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1015-76/+32
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove space between switch case and colonChristoph Wurst2020-04-091-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-094-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-092-2/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-094-8/+8
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20139 from ↵Roeland Jago Douma2020-04-041-1/+1
|\ | | | | | | | | nextcloud/unify-default-value-for-restricting-user-enumeration-with-settings Unify default value for restricting user enumeration with settings
| * Unify default value for restricting user enumeration with settingsDaniel Calviño Sánchez2020-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | If the value was never enabled or disabled, the settings show "Restrict username enumeration to groups" as disabled. However, in some components it was enabled by default, which caused an inconsistency in the behaviour with respect to the settings, for example in the contacts menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Update the license headers for Nextcloud 19Christoph Wurst2020-03-318-2/+49
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-1/+0
|\ \ | | | | | | Remove unused imports
| * | Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Use the short array syntax, everywhereChristoph Wurst2020-03-261-3/+3
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Register an address book with recent contactsChristoph Wurst2020-03-251-5/+10
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix generated avatars and nophoto cache filesJoas Schilling2020-03-241-2/+2
|/ | | | | | | | Since nextcloud/server#19493 newFile() by default does not write the file anymore. Setting an empty string as content will make it write the file immediate, without having to call putContent() afterwards. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return empty system addressbook since we cannot easily limit it to groupsJulius Härtl2020-03-201-1/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Prevent creation of reserved address book nameChristoph Wurst2020-03-091-0/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add address book pluginsChristoph Wurst2020-03-094-17/+202
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Correctly trim long cyrillic noteJoas Schilling2020-02-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-0515-17/+45
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-226-3/+8
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Dont assign $options to $options and cleanup docDaniel Kesselberg2019-07-221-3/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #14954 from tacruc/searchPatternsMorris Jobke2019-07-192-5/+13
|\ | | | | Allow to search for real pattern in contacts
| * Allow to search for real pattern in contactsArne Hamann2019-05-282-5/+13
| | | | | | | | | | | | Added an option escape_like_param to allow wildcards Signed-off-by: Arne Hamann <kontakt+github@arne.email>
* | LIMIT is no column but a SQL feature, allow limit on initial syncGeorg Ehrke2019-07-182-1/+10
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | add carddav-search option for X-ADDRESSBOOKSERVER-MEMBERlabor42019-06-071-1/+1
|/ | | | | | | | | | Adding field X-ADDRESSBOOKSERVER-MEMBER which can be used to relate persons to groups (macos behaviour). - groups are cards with field X-ADDRESSBOOKSERVER-KIND == 'group' - and all members' UUID/URI in the X-ADDRESSBOOKSERVER-MEMBER array of that group-card. Signed-off-by: labor4 <schreibtisch@labor4.ch>
* do not create folder just to delete it afterwardsArthur Schiwon2019-04-291-7/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* avoids users searches on backend, faster processingArthur Schiwon2019-04-171-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #6512 from coletivoEITA/add_circles_sharing_to_caldavMorris Jobke2019-03-131-1/+3
|\ | | | | Change CALDAV to allow calendars be shared with circles.