summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* Update license headers for 19Christoph Wurst2020-04-2926-2/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19793 from nextcloud/bugfix/noid/link-to-federated-reshareMorris Jobke2020-04-271-5/+8
|\ | | | | Fix resharing of federated shares that were created out of links
| * Link shares have reshare permission if outgoing federated shares are enabledJulius Härtl2020-04-211-5/+8
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #17623 from j3l11234/masterRoeland Jago Douma2020-04-241-0/+1
|\ \ | | | | | | Add support for download share on old android browser
| * | Add support for download share on old android browserj3l112342019-10-211-0/+1
| | | | | | | | | | | | Signed-off-by: j3l11234 <297259024@qq.com>
* | | make php-cs happyRobin Appelman2020-04-231-1/+0
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #20575 from nextcloud/fix/sharing-suggestionsMorris Jobke2020-04-221-29/+30
|\ \ \ | | | | | | | | Fix Sharing recommendation user display
| * | | Fix Sharing recommendation user displayJohn Molakvoæ (skjnldsv)2020-04-211-29/+30
| | |/ | |/| | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* | | Merge pull request #20114 from ↵Roeland Jago Douma2020-04-211-76/+4
|\ \ \ | |/ / |/| | | | | | | | nextcloud/techdebt/noid/allow-some-apps-to-have-root-urls Allow some apps to have root URLs in their own routing file
| * | PHP CS fixesJoas Schilling2020-04-181-5/+0
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Directly use the class to get the serviceJoas Schilling2020-04-181-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Fix creating the share controllerJoas Schilling2020-04-181-70/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Add method to storage backends to get directory content with metadataRobin Appelman2020-04-202-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently you need to use `opendir` and then call `getMetadata` for every file, which adds overhead because most storage backends already get the metadata when doing the `opendir`. While storagebackends can (and do) use caching to relief this problem, this adds cache invalidation dificulties and only a limited number of items are generally cached (to prevent memory usage exploding when scanning large storages) With this new methods storage backends can use the child metadata they got from listing the folder to return metadata without having to keep seperate caches. Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Also disallow ; in remote urlsJoas Schilling2020-04-141-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add visibility to all constantsChristoph Wurst2020-04-1010-41/+41
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Add visibility to all methods and position of static keywordChristoph Wurst2020-04-101-3/+3
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Format control structures, classes, methods and functionChristoph Wurst2020-04-1041-98/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Use elseif instead of else ifChristoph Wurst2020-04-1015-76/+76
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20391 from nextcloud/refactor/spaces-cleanupChristoph Wurst2020-04-092-3/+1
|\ \ | | | | | | Remove all extra whitespace PSR2 does not like
| * | Make sure there is exactly one newline after importsChristoph Wurst2020-04-091-1/+0
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | Make sure every file ends with an empty newlineChristoph Wurst2020-04-091-1/+0
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
| * | Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #20384 from nextcloud/techdebt/lowercase-keywordsChristoph Wurst2020-04-091-1/+1
|\ \ \ | |/ / |/| | Use php keywords in lowercase
| * | Use php keywords in lowercaseChristoph Wurst2020-04-091-1/+1
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-097-11/+11
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-095-5/+0
| | | | | | | | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix multiline commentsChristoph Wurst2020-04-082-2/+2
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Remove user name from public sharing pageJoas Schilling2020-04-011-5/+25
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update the license headers for Nextcloud 19Christoph Wurst2020-03-3114-4/+17
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-275-7/+0
|\ \ | | | | | | Remove unused imports
| * | Remove unused importsChristoph Wurst2020-03-255-7/+0
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Use the short array syntax, everywhereChristoph Wurst2020-03-266-33/+33
|/ / | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Convert share event to an interaction eventChristoph Wurst2020-03-252-1/+97
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Auto accept group shares for users added to a groupRoeland Jago Douma2020-03-252-0/+85
| | | | | | | | | | | | | | In case auto accepting is enabled (the default). Users that are newly added to a group should not have to accept those shares. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Remove unused properties in ShareesAPIControllerJulius Härtl2020-03-201-8/+0
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Allow the video player on the hide downloadJoas Schilling2020-03-191-8/+18
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix willReturnOnConsecutiveCallsJoas Schilling2020-03-131-0/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Don't allow anchors and queries in remote urlsJoas Schilling2020-03-121-0/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #19777 from nextcloud/fix/viewer-publicJohn Molakvoæ2020-03-121-1/+8
|\ \ | | | | | | Properly emit Viewer event on files and files_sharing
| * | Properly emit Viewer event on files and files_sharingJohn Molakvoæ (skjnldsv)2020-03-111-0/+6
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Fix import order and formattingJohn Molakvoæ (skjnldsv)2020-03-111-1/+2
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | Merge pull request #19861 from ↵Joas Schilling2020-03-111-0/+4
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/load-remote-shares-also-when-one-is-down Don't break when one remote share is down
| * | | Don't break when one remote share is downJoas Schilling2020-03-091-0/+4
| |/ / | | | | | | | | | | | | | | | getFileInfo can also return false Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Unify the code a bitJoas Schilling2020-03-103-37/+38
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Use contacts name on federated activitiesJoas Schilling2020-03-103-27/+49
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Don't try to format deleted sharesRoeland Jago Douma2020-03-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Fixes #15455 The issue is that we have a fallback for shares to use the target. So when the target exists again we happily format it (not that the shares are still invalid). This just tries to get the node. If we can't then boom. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Allow single file downloads so the video player works againJoas Schilling2020-02-281-8/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Allow to overwrite share target mountpointsJoas Schilling2020-02-171-0/+8
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #19349 from ↵Roeland Jago Douma2020-02-081-1/+4
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/prevent-download-on-secure-view Prevent archieved download on secure view