aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration/Reference
Commit message (Collapse)AuthorAgeFilesLines
* avoid requests to opengraph image if no host detectedJulien Veyssier2023-06-091-16/+21
| | | | Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
* 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>
* 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>
* 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>
* 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>