aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/CardDAV/PhotoCache.php
Commit message (Collapse)AuthorAgeFilesLines
* feat: Allow AVIF content type in PhotoCachefeat/photo-cache-avifMiguel Sánchez de León Peque2025-03-031-0/+1
| | | | Signed-off-by: Miguel Sánchez de León Peque <peque@ieco.io>
* feat: Allow WebP content type in PhotoCachefeat/photo-cache-webpMiguel Sánchez de León Peque2024-10-281-0/+1
| | | | | Signed-off-by: Miguel Sánchez de León Peque <peque@ieco.io> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-6/+4
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-3/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-271-26/+2
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* 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>
* Fixes "PossiblyNullArgument" Psalm warnings.Faraz Samapoor2023-06-121-1/+1
| | | | | Co-authored-by: Thomas Citharel <tcit@tcit.fr> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Refactors "strpos" calls in /apps/dav to improve code readability.Faraz Samapoor2023-06-121-1/+1
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Use Image class from public APIChristopher Ng2022-06-021-1/+1
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix more psalm issuesCarl Schwan2022-05-161-8/+5
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cleanup davCarl Schwan2022-05-051-23/+8
| | | | | | | - Remove unused class AppEnabledPlugin - Add more type hinting when possible Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Migrate dav application from ILogger to LoggerInterfaceCôme Chilliet2022-05-021-11/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow apps to get photos of VObjectsJoas Schilling2021-06-091-0/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-4/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Change Content-Disposition HeaderJacob Neplokh2020-09-051-1/+1
| | | | | | | | | | - Make ALLOWED_CONTENT_TYPES public in order to use - Add $fileName variable which uses "$node->getName()" to get the proper file name and "$file->getMimeType()" along with the ALLOWED_CONTENT_TYPES array in PhotoCache.php to get the proper file extension - Make "$fileName" the name of the file in the Content-Disposition header when downloading a Contact's photo - Add filename to the CardDAV integration image export test header - Change headers in ImageExportPluginTest to reflect changes Signed-off-by: Jacob Neplokh <me@jacobneplokh.com>
* Fix some MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-141-0/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.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-101-2/+1
| | | | | | | | | | | | | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix generated avatars and nophoto cache filesJoas Schilling2020-03-241-2/+2
| | | | | | | | Since nextcloud/server#19493 newFile() by default does not write the file anymore. Setting an empty string as content will make it write the file immediate, without having to call putContent() afterwards. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-051-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+2
| | | | | | | | | | | * 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>
* do not create folder just to delete it afterwardsArthur Schiwon2019-04-291-7/+15
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use proper mime type for icoDaniel Kesselberg2019-01-281-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add ico as avatarDaniel Kesselberg2019-01-281-32/+32
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Update apps/dav/lib/CardDAV/PhotoCache.php Morris Jobke2019-01-041-1/+1
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Co-Authored-By: skjnldsv <skjnldsv@users.noreply.github.com>
* Log failure on parsingJohn Molakvoæ (skjnldsv)2019-01-041-11/+18
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Allow URI as data for vcard PHOTOJohn Molakvoæ (skjnldsv)2019-01-041-4/+9
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Change @georgehrke's emailMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-1/+21
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Clear cache on vcard change/deleteRoeland Jago Douma2017-05-081-5/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Request proper size for contacts menuRoeland Jago Douma2017-05-081-0/+7
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache the carddav photo endpointRoeland Jago Douma2017-05-081-0/+227
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>