summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* Use ::class statement instead of stringMorris Jobke2018-01-296-8/+11
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-263-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Simplify ternary operator statementsMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8063 from nextcloud/inline-valueJoas Schilling2018-01-262-6/+2
|\ | | | | Return value immediately instead of assigning to a one-time variable
| * Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-262-6/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix array method usages with a proper callMorris Jobke2018-01-251-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* return correct mount type for federated sharesBjoern Schiessle2018-01-111-0/+10
| | | | | | fix https://github.com/nextcloud/server/issues/6584 Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Also replace all other occurencesMorris Jobke2017-12-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Also cache invalid DiscoveryService responseRoeland Jago Douma2017-12-131-1/+1
| | | | | | | | * Cache it for a day so we will retry eventually * Cache the status.php response as well so we will try it once a day as well Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* delay calculating the shared cache root until it's usedRobin Appelman2017-12-041-17/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use the correct root for shared jail when the source storage is also a jailRobin Appelman2017-11-101-1/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Change @georgehrke's emailMorris Jobke2017-11-064-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-0633-8/+124
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7030 from nextcloud/proper_og_imageRoeland Jago Douma2017-11-011-1/+6
|\ | | | | Use the new direct endpoint for the OpenGraph image
| * Use the new direct endpoint for the og:imageRoeland Jago Douma2017-10-311-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | Some providers had issues when using the preview link (since it was double encoded). Now we actually serve the max size preview so it looks better The image isn't cropped anymore so supporting platforms can just embed the whole image. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge branch 'master' into autocomplete-guiArthur Schiwon2017-11-011-2/+6
|\|
| * Do not error when downloading from a numeric public subfolderRoeland Jago Douma2017-10-301-0/+4
| | | | | | | | | | | | Fixes #6820 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Updated OpenGraph title to display folder name instead of a nextcloud ↵Sascha Sambale2017-10-251-2/+2
| | | | | | | | | | | | | | | | | | | | standard text When sharing a folder via Facebook, WhatsApp or any other platform that makes use of OpenGraph, the display title was "Nextcloud - a safe home for all your data" and the description was the actual name of the folder. This should not be the case, so the display title has been changed to display the folder name and the description now displays the former OpenGraph title. Signed-off-by: Sascha Sambale <mastixmc@gmail.com> Fixing whitespaces and empty line.
* | fix sharerecipientssorter testsArthur Schiwon2017-10-271-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | fix sortingArthur Schiwon2017-10-261-4/+14
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | ensure that sorting is stableArthur Schiwon2017-10-221-2/+17
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | AutoCompletion backendArthur Schiwon2017-10-221-0/+85
|/ | | | | | | | | | * introduce a Controller for requests * introduce result sorting mechanism * extend Comments to retrieve commentors (actors) in a tree * add commenters sorter * add share recipients sorter Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #6328 from nextcloud/split-sharees-api-logicblizzz2017-10-041-578/+36
|\ | | | | Splits off the logic from sharees endpoint thus making it available from within Nc/via PHP.
| * shareeAPIController unit test clean up and last fixesArthur Schiwon2017-09-261-0/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * remove unused methodArthur Schiwon2017-09-261-22/+0
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * adjust ShareeAPIController search testArthur Schiwon2017-09-261-1/+4
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * allow more than one plugin per share typeArthur Schiwon2017-09-261-0/+2
| | | | | | | | | | | | | | however it does not dedupe (appears too complex/expensive while we don't havve the issue currently) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * don't keep result types hard codedArthur Schiwon2017-09-261-1/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * Splits off the logic from sharees endpoint thus making it available fromArthur Schiwon2017-09-261-558/+31
| | | | | | | | | | | | within Nc/via PHP. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Only have direct preview urls for image filesRoeland Jago Douma2017-09-251-2/+5
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add annotationRoeland Jago Douma2017-09-251-0/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | For images we have a preview for use the preview linkRoeland Jago Douma2017-09-251-0/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add direct preview link to single shared image filesRoeland Jago Douma2017-09-251-0/+46
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #6120 from nextcloud/public_upload_share_api_fixblizzz2017-09-041-0/+1
|\ | | | | Public upload share permission handling
| * Public upload share permission handlingRoeland Jago Douma2017-08-161-0/+1
| | | | | | | | | | | | | | | | If you set the permissions on a public share the SHARE permission makes no sense. So instead of throwing a warning. Just filter out the share permission. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Correctly format OCS response with favoritesRoeland Jago Douma2017-08-291-2/+2
|/ | | | | | | | | | The helper funtion did not handle the response correctly and basically only returned the last share with tags. This is a simple rewrite. That is still understandable. Loops maybe more than strictly required. But preformance is not the issue here. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #6130 from nextcloud/cleanup-unused-methodsMorris Jobke2017-08-162-2/+2
|\ | | | | Cleanup unused methods
| * Cleanup unused methodsMorris Jobke2017-08-152-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Catch exceptions on error of cloud id resolutionJoas Schilling2017-08-141-5/+21
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add unit testsRoeland Jago Douma2017-08-102-16/+23
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove old code + add MiddlewareRoeland Jago Douma2017-08-103-7/+94
| | | | | | | * Add proper middleware for shareinfo * Remove old shareinfo routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move shareinfo over to proper controllerRoeland Jago Douma2017-08-101-0/+130
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #4790 from nextcloud/fix-comparisons-in-appsMorris Jobke2017-08-024-9/+9
|\ | | | | Fix comparisons in apps
| * Fix comparisons in the sharing appJoas Schilling2017-08-014-9/+9
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove explicit type hints for ControllerLukas Reschke2017-08-012-4/+4
| | | | | | | | | | | | This is public API and breaks the middlewares of existing apps. Since this also requires maintaining two different code paths for 12 and 13 I'm at the moment voting for reverting this change. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Merge pull request #5877 from nextcloud/typehint_middlewareMorris Jobke2017-08-012-8/+10
|\ \ | |/ |/| Prop argument type for Middleware
| * Fix middleware implementations signaturesRoeland Jago Douma2017-07-312-8/+10
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Disable default activity email for incoming sharesMorris Jobke2017-07-312-2/+2
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Some app fixes of phpstorm inspectionsRoeland Jago Douma2017-07-246-10/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>