aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Contacts
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #32635 from andyxheli/patch-3blizzz2022-10-051-2/+5
|\ | | | | Fix User profile picture when performing the search
| * Update lib/private/Contacts/ContactsMenu/ContactsStore.php Andy Xheli2022-09-201-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Tested no issues. Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
| * Update ContactsStore.phpAndy Xheli2022-09-191-1/+1
| | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
| * Apply suggestions from code review Andy Xheli2022-09-161-1/+1
| | | | | | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Andy Xheli <axheli@axtsolutions.com>
| * Fix User profile picture when performing the searchAndy Xheli2022-05-271-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Andy Xheli <axheli@axtsolutions.com> Before ![image](https://user-images.githubusercontent.com/59488153/140980158-b9108161-57ab-48b4-ae6f-98ec4e72775a.png) After Fix for #31065
* | Fix typos in lib/private subdirectoryluz paz2022-07-271-1/+1
| | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* | Fix PHP 8.2 warnings about undeclared propertiesCôme Chilliet2022-06-211-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Modernize contacts menuThomas Citharel2022-05-127-196/+56
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Fix passing null to strlenThomas Citharel2022-03-242-4/+4
| | | | | | | | | $filter can be null as it's the default value passed in ContactsMenuController. On PHP 8.1 : strlen(): Passing null to parameter #1 ($string) of type string is deprecated Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Add global profile toggle configChristopher Ng2022-03-182-21/+17
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Limit more contact searchesJoas Schilling2021-12-081-2/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix source of translationsChristopher Ng2021-11-262-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-4/+1
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Change origin field to appIdJoas Schilling2021-10-204-23/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not remove current user on findOneJohn Molakvoæ2021-10-201-14/+14
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add appName to contactsmenu action APIJohn Molakvoæ2021-10-202-3/+26
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Profile backendChristopher Ng2021-10-194-9/+181
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Add email addresses to contacts menuDaniel Kesselberg2021-09-151-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-16/+11
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Clean up the logic of the contacts store a bitJoas Schilling2021-03-101-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-101-1/+6
| | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-101-38/+68
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #25925 from nextcloud/techdept/psalm/ActionProviderStoreRoeland Jago Douma2021-03-081-17/+16
|\ | | | | Pimp ActionProviderStore
| * Pimp ActionProviderStoreRoeland Jago Douma2021-03-041-17/+16
| | | | | | | | | | | | | | | | | | | | * Fix paradoxale condition * Add types * Move away from ILogger Makes psalm happy, and thus me happy Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Type Entry and IEntryRoeland Jago Douma2021-03-041-14/+17
|/ | | | | | | | | * Fixed a docblock * Typed the entries Psalm happier, Roeland happier Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* use a consistent default value for sharing.maxAutocompleteResultsArthur Schiwon2020-12-151-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-242-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* contactsmanager shall limit number of results earlyArthur Schiwon2020-07-312-7/+19
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-107-14/+6
| | | | | | | | | | | | | | | 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>
* Unify function spacing to PSR2 recommendationChristoph 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-311-0/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use lowercase true, false and null constantsChristoph Wurst2020-03-251-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Limit enumeration in contacts storeJulius Härtl2020-03-201-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not encode contacts menu mailto linksChristoph Wurst2020-01-281-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-057-14/+16
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+1
| | | | | | | | | | | * 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>
* Respect sharing enumeration config in contacts menuJulius Härtl2019-04-181-5/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Don't fail contacts menu on unkown userRoeland Jago Douma2018-07-191-1/+7
| | | | | | | | If for some reason the system addressbook holds a user that is no longer accessible from the usermanager (so it got somehow out of sync) we should not fail hard but rather just ignore the entry. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix local users check in contacts menuChristoph Wurst2018-06-041-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused import statementsMorris Jobke2018-02-141-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make ContactsStore a public APITobia De Koninck2017-12-111-1/+2
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Change @georgehrke's emailMorris Jobke2017-11-062-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-14/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add filter for `shareapi_allow_share_dialog_user_enumeration`Lukas Reschke2017-09-151-14/+48
| | | | | | | | This adjusts the contacts menu to also support searching by email address which is relevant in scenarios where no UID is known such as LDAP, etc. Furthermore, if `shareapi_allow_share_dialog_user_enumeration` is disabled only results are shown that match the full user ID or email address. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix issue when disabling the shareapi_only_share_with_group_members option + ↵Tobia De Koninck2017-09-151-2/+12
| | | | | | fix findOne Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Improve code styleTobia De Koninck2017-09-151-5/+7
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
* Some code improvementsTobia De Koninck2017-09-151-4/+5
| | | | Signed-off-by: Tobia De Koninck <tobia@ledfan.be>