aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Collaboration/Reference
Commit message (Collapse)AuthorAgeFilesLines
* fix(collaboration): Reduce timeouts to 3s for link reference connectsfix/issue-34720Josh2024-09-131-3/+3
| | | | | | | Fixes rest of #34720 https://github.com/nextcloud/server/issues/34720#issuecomment-1286609205 Signed-off-by: Josh <josh.t.richards@gmail.com>
* fix(linkReferenceProvider): better size checkJulien Veyssier2024-08-301-4/+14
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: Do not log link reference exceptions as errorJulius Härtl2024-08-051-5/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* docs: update docs for ocp eventsDaniel Kesselberg2024-07-231-2/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat(Reference): Add public API endpoints to get referencesJonas2024-07-173-3/+54
| | | | | | | | | | | | | | | | | | | | | | | 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>
* chore: Add SPDX headerAndy Scherzinger2024-05-249-163/+18
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(OCP): Add since tag to all constantsJoas Schilling2024-02-151-3/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat: Migrate LinkReferenceProvider to OCPAnupam Kumar2024-02-141-0/+215
| | | | | | | | | 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>
* core: Fix OpenAPI for reference APIjld31032023-09-142-1/+8
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* core: Add OpenAPI specjld31032023-07-131-0/+4
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* style: Fix php-cs and psalmJulius Härtl2023-01-271-2/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* handle and return touchProvider errorsJulien Veyssier2023-01-271-2/+2
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* ADiscoverableReferenceProvider implements JsonSerializableJulien Veyssier2023-01-271-1/+3
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* add 'last used timestamp' management for reference providersJulien Veyssier2023-01-271-1/+21
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* extend the reference API for the new link pickerJulien Veyssier2023-01-274-0/+151
| | | | | | | | | - 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>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* reference url can always fallback to the link itselfJulien Veyssier2022-09-302-3/+3
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Add sinceJoas Schilling2022-09-261-9/+97
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move Reference class to public namespaceJulius Härtl2022-09-261-0/+161
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add event to load scripts for reference renderingJulius Härtl2022-09-011-0/+36
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Refactor cache handlingJulius Härtl2022-08-312-2/+28
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* CleanupJulius Härtl2022-08-313-12/+26
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move registration to IBootstrapJulius Härtl2022-08-311-7/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add full public interfacesJulius Härtl2022-08-313-4/+142
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Implement reference provider based cachingJulius Härtl2022-08-311-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* API for fetching reference metadataJulius Härtl2022-08-313-0/+89
Signed-off-by: Julius Härtl <jus@bitgrid.net>