aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
Commit message (Collapse)AuthorAgeFilesLines
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Avoid clear cache with prefixJulius Härtl2024-03-081-1/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-6/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(collaboration): collaboration MailPlugin: Protect access to a ↵Claus-Justus Heine2024-02-271-2/+2
| | | | | | potentially missing array component by ??. Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
* feat: Migrate LinkReferenceProvider to OCPAnupam Kumar2024-02-141-155/+4
| | | | | | | | | This would be useful to eleminate the need for using this OC class when an app dev wants to implement a custom reference provider for the web client but wants to fall back on opengraph for mobile clients. Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
* feat(php,vue): Create a new parameterBaptiste Fotia2024-01-313-0/+26
| | | | Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Refactors lib/private/Collaboration.Faraz Samapoor2023-10-039-214/+61
| | | | | | Mainly using PHP8's constructor property promotion. Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Adds type hint to the method parameter.Faraz Samapoor2023-09-211-1/+1
| | | | | Co-authored-by: fenn-cs <fenn25.fn@gmail.com> Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* Refactors lib/private/Collaboration.Faraz Samapoor2023-09-219-195/+114
| | | | | | Mainly using PHP8's constructor property promotion. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* fix: Migrate collaboration listener and remove legacy adapterJoas Schilling2023-07-281-34/+16
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix!: Remove symfony EventDispatcherInterface from UserJoas Schilling2023-07-271-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-061-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* avoid requests to opengraph image if no host detectedJulien Veyssier2023-06-091-16/+21
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use implementations instead of interfaces for accessing private methodsjld31032023-03-301-1/+1
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* fix(references): Do not log errors on 404 responses of opengraph image fetchingJulius Härtl2023-03-131-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement file reference wigetJulius Härtl2023-03-021-9/+33
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* safer URL match in FileReferenceProviderJulien Veyssier2023-02-091-4/+4
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Merge pull request #35160 from nextcloud/artonge/feat/version_naming_backendLouis2023-01-301-0/+6
|\ | | | | Allow to name a version
| * Adapt files_versions tests to modernized hooksLouis Chemineau2023-01-261-0/+6
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | style: Fix php-cs and psalmJulius Härtl2023-01-272-2/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | improve getUserProviderTimestampsJulien Veyssier2023-01-271-3/+4
| | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | use array_filter instead of array_map + array_searchJulien Veyssier2023-01-271-5/+5
| | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | handle and return touchProvider errorsJulien Veyssier2023-01-271-1/+3
| | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | add 'last used timestamp' management for reference providersJulien Veyssier2023-01-273-5/+58
| | | | | | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* | extend the reference API for the new link pickerJulien Veyssier2023-01-272-0/+124
|/ | | | | | | | | - add 2 interfaces for discoverable and searchable reference providers - new OCS route to get info on discoverable/searchable reference providers - new abstract ADiscoverableReferenceProvider that only implements jsonSerialize - listen to RenderReferenceEvent to inject provider list with initial state Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Fix double where() usage in resource managerJoas Schilling2023-01-231-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* composer run cs:fixCôme Chilliet2023-01-204-4/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* improve link reference content-type check, accept 'text/html;*'Julien Veyssier2023-01-101-1/+3
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* in the link reference provider, check if the link content type begins with ↵Julien Veyssier2023-01-091-1/+3
| | | | | | text/html Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* add restrictions on content-type and content-size when downloading to ↵Julien Veyssier2023-01-051-0/+16
| | | | | | resolve with opengraph link provider Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* Improve email search resultsJoas Schilling2022-12-091-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* File reference: use the file type icon as fallback when no preview provider ↵Julien Veyssier2022-10-061-2/+14
| | | | | | for this type Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Add fallback options for contacts arrayAnna Larch2022-10-011-8/+8
| | | | | | when the UID or FN is null, the email address / dsiplay name will be used instead Signed-off-by: Anna Larch <anna@nextcloud.com>
* Move Reference class to public namespaceJulius Härtl2022-09-264-164/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Inject all dependnencies and increase cache timeoutJulius Härtl2022-08-313-6/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Refactor cache handlingJulius Härtl2022-08-314-31/+131
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* CleanupJulius Härtl2022-08-314-41/+73
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Limit preview file sizeJulius Härtl2022-08-311-2/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move registration to IBootstrapJulius Härtl2022-08-311-9/+41
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add full public interfacesJulius Härtl2022-08-314-6/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement image cachingJulius Härtl2022-08-313-3/+55
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add cache invalidationJulius Härtl2022-08-311-10/+41
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement reference provider based cachingJulius Härtl2022-08-313-13/+53
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Make reference fetching configurableJulius Härtl2022-08-312-10/+14
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* API for fetching reference metadataJulius Härtl2022-08-314-0/+401
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Rename setting name to reduce its lengthLouis Chemineau2022-06-271-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Introduce event for loading additional script on projectsJulius Härtl2022-05-121-6/+27
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>