aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
Commit message (Collapse)AuthorAgeFilesLines
* fix(lookup-server): disable lookup server for non-global scale setupsFerdinand Thiessen2025-03-111-2/+4
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(lookup-server): do not query data by defaultFerdinand Thiessen2025-03-111-1/+1
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(db): Apply query prepared statementsdbQueriesExecStmt2Git'Fellow2024-10-171-3/+3
| | | | | | | | | | | | | | | | Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-193-3/+3
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(Collaboration): Use non-deprecated methodsFerdinand Thiessen2024-09-191-7/+17
| | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-255-15/+15
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat(Reference): Add public API endpoints to get referencesJonas2024-07-171-11/+25
| | | | | | | | | | | | | | | | | | | | | | | Calling the public API endpoints will check for matching registered reference providers that implement `IPublicReferenceProvider` and call their respective functions. If no matching provider is found, the default `LinkReferenceProvider` will be used to provide open graph data. The frontend reference widget components will call these endpoints from unauthorized sessions, e.g. in public shares. If present, the sharing token of the origin URL is passed to `resolveReferencePublic()` as additional information for the reference provider to determine the access scope. This allows the respective reference providers to determine whether the origin share has access to the linked resource. `getCacheKeyPublic` also gets the sharing token so it can scope the cached entry to it. Contributes to #45978 Signed-off-by: Jonas <jonas@freesources.org>
* fix(federation): Fix missing protocol on CloudID remoteJoas Schilling2024-06-271-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-2419-401/+38
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* 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>