aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Also expire share type emailJohn Molakvoæ (skjnldsv)2020-10-201-1/+4
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Merge pull request #23350 from st3iny/fix/14849/share-api-preview-availabilityMorris Jobke2020-10-131-1/+7
|\ \ | | | | | | Inidicate preview availability in share api responses
| * | Indicate preview availability in share api responsesRichard Steinmetz2020-10-131-1/+7
| | | | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | | Expose CLOUD federation for local users as wellJohn Molakvoæ (skjnldsv)2020-10-121-0/+4
|/ / | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Format code to a single space around binary operatorsChristoph Wurst2020-10-055-23/+23
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Show filename on share link downloadJohn Molakvoæ (skjnldsv)2020-09-171-1/+4
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #22898 from ↵Morris Jobke2020-09-171-2/+2
|\ | | | | | | | | nextcloud/fix/16696/add-spaces-and-fix-variable-name Fix variable name and add spaces around path in info log line
| * Fix variable name and add spaces around path in info log lineMorris Jobke2020-09-171-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #22902 from ↵Morris Jobke2020-09-171-1/+1
|\ \ | | | | | | | | | | | | nextcloud/fix/16696/proper-target-path-for-share-event Create proper target path for shared storage fopen event
| * | Create proper target path for shared storage fopen eventMorris Jobke2020-09-171-1/+1
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | optimize View::getPath if we already know the storage idRobin Appelman2020-09-161-5/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | disable update checking for shared storagesRobin Appelman2020-09-151-6/+13
|/ | | | | | update checking is already handled by the share source Signed-off-by: Robin Appelman <robin@icewind.nl>
* only get the permissions from the share source if it's not already cachedRobin Appelman2020-09-091-6/+5
| | | | | | this prevents having to setup the share source when doing metadata stuff on the share root Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-072-1/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not fail if share for mountpoint is no longer availableJulius Härtl2020-09-031-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* remove unneeded ifRobin Appelman2020-08-281-44/+42
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #22393 from nextcloud/fix/license-headers-20Roeland Jago Douma2020-08-2415-7/+20
|\ | | | | Update the license headers for Nextcloud 20
| * Update the license headers for Nextcloud 20Christoph Wurst2020-08-2415-7/+20
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Fix missing FN from federated contactJohn Molakvoæ (skjnldsv)2020-08-241-1/+1
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-192-6/+7
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Improve recent file fetchingRoeland Jago Douma2020-08-181-0/+5
| | | | | | | | | | | | | | | | Fixes #16876 Before we'd just fetch everything from all storages we'd have access to. Then we'd sort. And filter in php. Now this of course is tricky if a user shared just a file with you and then has a ton of activity. Now we try to contruct the prefix path. So that the filtering can happen right away in the databae. Now this will make the DB more busy. But it should help overall as in most cases less queries are needed then etc. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #22109 from nextcloud/feature/20931/followup-1John Molakvoæ2020-08-171-1/+21
|\
| * Expose status via Collaborators APIGeorg Ehrke2020-08-141-1/+21
| | | | | | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* | Fix some MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-144-5/+5
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* merge file activity settings into a single 'favorite changed' itemRobin Appelman2020-08-133-9/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move share notifcation settings to files groupRobin Appelman2020-08-134-36/+50
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* When no user is logged in null is usedJoas Schilling2020-07-291-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move federated_share_added into a typed eventMorris Jobke2020-07-233-38/+23
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Migrate files sharing to the PSR containerChristoph Wurst2020-07-161-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Better event description for BeforeTemplateRenderedEvent in files and ↵Morris Jobke2020-07-151-0/+18
| | | | | | files_sharing Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add BeforeTemplateRenderedEvent for files_sharingJulius Härtl2020-07-154-12/+125
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #21816 from ↵Morris Jobke2020-07-141-3/+1
|\ | | | | | | | | nextcloud/techdebt/noid/federatedfilesharing-to-ibootstrap Use IBootstrap for the app federatedfilesharing
| * Use IBootstrap for the app federatedfilesharingMorris Jobke2020-07-141-3/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Add user input for link share labelsGary Kim2020-07-141-0/+3
|/ | | | Signed-off-by: Gary Kim <gary@garykim.dev>
* Lazy register the navigationRoeland Jago Douma2020-07-091-53/+56
| | | | | | | This makes sure that we do not translate unneeded strings on for example webdav requests. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #21591 from nextcloud/debt/noid/set-path-for-ocm-permissionsRoeland Jago Douma2020-07-021-1/+1
|\ | | | | Pass $path to ocmPermissions2ncPermissions
| * Pass $path to ocmPermissions2ncPermissionsDaniel Kesselberg2020-06-251-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Also always return in app commandsJoas Schilling2020-06-262-2/+4
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update share type constant usageJoas Schilling2020-06-249-30/+35
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't initialize Application directlyJoas Schilling2020-06-171-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Always sort shares in a reliable wayJoas Schilling2020-06-081-3/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Do not only catch Exceptions but any Throwable during rmt share deleteChristoph Wurst2020-06-021-2/+2
| | | | | | | | | | When a remote share is deleted, we notify the remove instance. This may trigger various error conditions, which we want to catch in order to avoid undeletable shares. The try-catch, however, did only capture exceptions, so things like TypeErrors were not caught and caused the process to fail hard. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix reference to wrong class nameDaniel Calviño Sánchez2020-05-291-3/+3
| | | | | | | \OCP\IShare does not exist; the right name is \OCP\Share\IShare, although it is already imported as IShare. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Have share permissions on link shares if it is enabledRoeland Jago Douma2020-05-151-9/+10
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not filter id matching userId on non-user-share sharesJohn Molakvoæ (skjnldsv)2020-05-051-4/+5
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Fix federated link sharing permissionsJohn Molakvoæ (skjnldsv)2020-05-041-60/+71
| | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* Allow to navigate to others with access from the sidebarRoeland Jago Douma2020-04-291-2/+21
| | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
* 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>