Carl Schwan
02da4ce1b0
Init user's file system if not existing on ownership transfer
...
This makes it a bit easier to transfer ownership when the new user
hasn't already logged in. This still doesn't support encrypted
storages because the keys are not generated yet.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-02-01 13:26:41 +07:00
Julien Veyssier
b67b4b160b
[files] new internal link GET param to avoid setting 'openfile' on redirect
...
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-14 10:50:13 +07:00
John Molakvoæ
2c1eac665a
Merge pull request #30530 from nextcloud/fix/search-url
2022-01-14 09:18:44 +07:00
John Molakvoæ
8d3a4856cb
Fix wrong unified search link to folder
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-01-13 18:26:07 +07:00
John Molakvoæ (skjnldsv)
87d0904b6f
Split common vendor chunk
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-01-08 10:14:50 +07:00
John Molakvoæ (skjnldsv)
b664aad7ab
Move bundles to /dist
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-01-08 10:11:58 +07:00
Joas Schilling
d49ad7ea47
Limit more contact searches
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-08 18:58:54 +07:00
Robin Appelman
e95745c074
fix tests
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:43:16 +07:00
Robin Appelman
89bc9f1b77
stop background scan early if a users still has unscanned files after background scan
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:35:07 +07:00
Robin Appelman
38921ab498
find users for background scan one by one
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:35:02 +07:00
John Molakvoæ (skjnldsv)
a325141545
Remove isIE and associated legacy scripts
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-11-30 13:03:08 +07:00
Vincent Petry
67ebe75d0e
Move storage encoding compatibility warning logic
...
The encoding check for file names is now happening the Scanner, and an
event will be emitted only if the storage doesn't contain the encoding
compatibility wrapper.
The event is listened to by the occ scan command to be able to display a
warning in case of file name mismatches when they have NFD encoding.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-17 09:24:13 +07:00
Julius Härtl
9c937a63bf
Move to combined files entrypoint
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-25 16:51:37 +07:00
Vincent Petry
fa23a9f720
Do not transfer shares for deleted users
...
Whenever a user was deleted but is still recipient of share entries,
delete these entries upon transfer.
Usually such entries would disappear after running cleanup background
jobs.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-10-04 11:04:04 +07:00
Vincent Petry
ab09f1e00e
Merge pull request #28853 from nextcloud/bugfix/27547/dont-allow-changing-settings-that-dont-work
...
Don't allow to change activity settings that don't work
2021-09-27 08:16:33 +07:00
Joas Schilling
ad9cad1ae5
Don't allow to change activity settings that don't work
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-09-15 17:27:01 +07:00
Immanuel Pasanec
1f42657bb9
Added support for transfering incoming file shares.
...
- new option --transfer-incoming-shares=1 | 0
- new config.php option 'transfer-incoming-shares' => true | false
The command line option overrules the config.php option.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-08-27 17:55:58 +07:00
Christoph Wurst
ffcf27c757
Log exception message during failed ownership transfer share restore
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-08-24 09:22:30 +07:00
Louis
1ad5e8ad73
Fix typo
...
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
2021-07-28 11:15:03 +07:00
Louis Chemineau
e558a00496
Set openfile params when following internal links
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-07-27 11:41:32 +07:00
Louis Chemineau
2cbc3e9245
Fix variabable override in file view
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-07-26 15:47:37 +07:00
Louis Chemineau
c03a14934b
Trigger click event when scrollTo is set
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-06-09 16:19:11 +07:00
Morris Jobke
2ae60b42ab
Merge pull request #26494 from rigrig/fix-php8-deprecations
...
Fix some php 8 warnings
2021-06-07 23:30:59 +07:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Richard de Boer
f23d057ad9
Fix functions taking optional parameters before required ones
...
PHP 8 shows deprecation warnings about this, see #25806
Removes the "default" values, as they actually are required parameters anyway.
Signed-off-by: Richard de Boer <git@tubul.net>
2021-05-29 14:14:52 +07:00
Roeland Jago Douma
bcf01a1b90
Fix more psalm warnings
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-21 16:58:15 +07:00
Morris Jobke
eb1d16d92d
Add proper PHPDoc tags to files ApiController
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-21 16:58:15 +07:00
Morris Jobke
f1dbabd910
Merge pull request #26727 from nextcloud/group-exclude-link-share
...
Add option to exclude groups from creating link shares
2021-05-21 15:35:39 +07:00
Robin Appelman
b1dca57a1c
load share settings from the share manager in more places
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-12 16:11:28 +07:00
Robin Appelman
907e997c99
optimize getting share types for recent files
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-21 13:56:11 +07:00
Roeland Jago Douma
0593b039fc
Move over notification to new registration
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-16 13:56:28 +07:00
Morris Jobke
1c074e7602
Merge pull request #26198 from nextcloud/unified-search-node
...
Handle limit offset and sorting in files search
2021-03-22 21:48:51 +07:00
Robin Appelman
a0fb6d2518
pass order from unified search to file search
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 16:07:57 +07:00
Christoph Wurst
e68c4a4ed3
Only perform login check during ownership transfer for encryption
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-19 11:25:56 +07:00
Robin Appelman
14a1b5063e
use "newer" node search api directly in unified search
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 16:22:29 +07:00
Morris Jobke
f56e5bb0db
Merge pull request #25676 from nextcloud/drop/utl-is-ie
...
Drop \OCP\Util::isIe
2021-03-17 20:18:11 +07:00
Vincent Petry
ab5c19bb08
Merge pull request #26131 from nextcloud/fix/initialstate-templates
...
Fix default missing initial state for templates
2021-03-17 10:18:03 +07:00
John Molakvoæ (skjnldsv)
223fe2aae6
Fix default missing initial state for templates
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-15 17:23:30 +07:00
Robin Appelman
424db15dea
limit constructing of result objects in file search
...
even thought we currently have no proper way of limiting the search itself, we can at least limit the construction of the result objects.
this saves about 40% of the time spend in the search request in my local testing
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-11 14:49:57 +07:00
Christoph Wurst
7f3051e5bf
Drop \OCP\Util::isIe
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-09 20:29:42 +07:00
Roeland Jago Douma
997259d1cd
Activity: show if files are hidden or not
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 13:14:52 +07:00
dependabot-preview[bot]
eb502c02ff
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
...
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>
2021-02-18 13:31:24 +07:00
Julius Härtl
6c1b357973
Move TemplateProvider registration to boot context and make template type registration lazy
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-28 12:00:21 +07:00
John Molakvoæ (skjnldsv)
4f90766ba3
Skip template picker if none available
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-01-28 12:00:20 +07:00
John Molakvoæ (skjnldsv)
78e114ed72
Add template picker
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-01-28 12:00:18 +07:00
Julius Härtl
4974404774
files: Create files from template API
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-28 11:59:46 +07:00
Robin Appelman
1ecc02946f
cast ints
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 18:08:10 +07:00
Robin Appelman
68589f7792
handle the cache where a cache entry with the correct path has already been recreated
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:23 +07:00
Robin Appelman
8bd39f081f
also repair storage id
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:20 +07:00
Robin Appelman
291b72ec50
add command to repair broken filesystem trees
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:16 +07:00
Julius Härtl
c80e007607
Merge pull request #25055 from nina-py/18439-add-crop-image-previews-setting
...
Add "Crop image previews" setting to files
2021-01-15 08:07:52 +07:00
Nina Pypchenko
c14638877c
Add "Crop image previews" setting to files
...
Added a new user setting that toggles cropping on image previews
in grid view.
True (default value): crops each image to a square. False: keep original
aspect ratio.
Signed-off-by: Nina Pypchenko <22447785+nina-py@users.noreply.github.com>
Closes #18439 .
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-01-14 17:36:17 +07:00
Christoph Wurst
3678823748
Fix database connection usage in the files scanner
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-01-11 16:45:14 +07:00
Morris Jobke
24d436cb60
Remove unneeded casts that were found by Psalm
...
In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521 )
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-01-11 13:14:41 +07:00
Christoph Wurst
9ce3ea3368
Update license headers
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-30 14:07:05 +07:00
Roeland Jago Douma
adc4f1a811
Merge pull request #22916 from J0WI/unifiy-links-to-php.net
...
Unify links to php.net
2020-12-22 09:53:31 +07:00
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 18:48:22 +07:00
Richard Steinmetz
f56eb82ddd
Indicate preview availability in recent file api responses
...
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2020-12-10 16:37:46 +07:00
Julius Härtl
c4ea37b8a1
Address minor comments
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-09 15:51:41 +07:00
Julius Härtl
f3150f29a7
Introduce deck share type to ShareAPIController
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-09 13:20:24 +07:00
Christoph Wurst
885dabb761
Add attributes to file search results
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-03 18:24:33 +07:00
Roeland Jago Douma
448044d831
Fix getstorage call
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-11-06 09:03:32 +07:00
Roeland Jago Douma
48d843858d
Do not setup the default FS on normal routes
...
This should help with load times hopefully. Only initialize the FS if we
actually ned it.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-11-06 09:03:32 +07:00
Robin Appelman
d52328660e
only run the background scanner for users that have unscanned files
...
instead of looping trough all users and seeing if they have unscanned files, we do a single query to find all storages that need scanning and run trough the users for them
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-20 17:48:25 +07:00
Sujith Haridasan
08bdc549bb
Stop transfer of ownership between same users
...
Stop the transfer of ownership between same user.
Signed-off-by: Sujith Haridasan <sujith.h@gmail.com>
2020-10-12 09:31:49 +07:00
Christoph Wurst
d9015a8c94
Format code to a single space around binary operators
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-05 20:25:24 +07:00
Robin Appelman
0dfdf3ee99
add mount point to quota warning message
...
makes it more clear to the user what the quota applies to
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-10-04 11:02:32 +07:00
J0WI
68ce17e59b
Unify links to php.net
...
Update all links to https://www.php.net/
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2020-09-17 17:40:04 +07:00
Roeland Jago Douma
2dbeb58c7a
Merge pull request #22854 from nextcloud/bugfix/noid/unified-search
...
Bugfix/noid/unified search
2020-09-15 11:35:28 +07:00
Joas Schilling
d37bd2cbab
Use absolute URLs on search results for the clients
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-15 09:20:10 +07:00
Roeland Jago Douma
5724d4c6fe
Fix files search provider
...
The move to OCS make it so no filesystem is setup.
This makes the static file search code do boom.
Explicitly getting the users filesystem helps.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-09-11 10:27:02 +07:00
Joas Schilling
7e1ca73261
Allow to get activities for files by email again
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-09-10 10:08:18 +07:00
Joas Schilling
f0b46ea605
Merge pull request #22648 from nextcloud/bugfix/noid/transfer-all-shares
...
Transfer shares if no path provided
2020-09-09 13:32:43 +07:00
Julius Härtl
aa04a26c68
Transfer shares if no path provided
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-07 17:35:29 +07:00
Christoph Wurst
1f7f93a695
Update license headers for Nextcloud 20 (again)
...
There are still lots of outdated headers, so time for another round of
updates.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-09-07 14:37:44 +07:00
Julius Härtl
e0ae37745a
Do not expose direct editing if no master key is available
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-09-01 11:40:27 +07:00
Julius Härtl
ac2999a26a
Transfer shares of the transferred root node
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-31 14:23:34 +07:00
Robin Appelman
c077c15875
show better quota warning for group folders and external storage
...
instead of showing the generic 'Your storage is full' message, better explain that it's the group folder/external storage that is full
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-08-25 16:05:16 +07:00
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-24 14:54:25 +07:00
Morris Jobke
420a3762cb
Merge pull request #21797 from rawtaz/patch-1
...
Include e-mail shares when transferring ownership
2020-08-20 16:08:51 +07:00
Morris Jobke
7b8adb1817
Merge pull request #21861 from nextcloud/techdebt/files-psr-container
...
Migrate files to the PSR container
2020-08-17 17:58:41 +07:00
Morris Jobke
f406f5dc73
Fix TagService DI name
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-17 16:55:16 +07:00
Christoph Wurst
07fcf14324
Migrate files to the PSR container
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-17 09:45:11 +07:00
Daniel Kesselberg
6f8147b18f
Fix some MissingDocblockType or InvalidDocblock warnings.
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-08-14 15:10:48 +07:00
Robin Appelman
5f58cefbd7
merge file activity settings into a single 'favorite changed' item
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-08-13 00:01:34 +07:00
Morris Jobke
8fc877ff7d
Merge pull request #22117 from nextcloud/activity-settings-grouping
...
allow grouping of activity settings
2020-08-11 11:24:23 +07:00
Morris Jobke
5d3ecfdffd
Merge pull request #21775 from nextcloud/bugfix/noid/transfer-object-storage
...
Do not exit if available space cannot be determined on file transfer
2020-08-11 11:08:03 +07:00
Morris Jobke
bc4df68e56
Merge pull request #22169 from nextcloud/enh/noid/prefer-typed-events
...
Prefer typed event over string based ones
2020-08-11 09:34:48 +07:00
Morris Jobke
4e297d7a97
Use constant instead of magic number
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-11 08:14:03 +07:00
Julius Härtl
cb2f5a829e
Do not exit if available space cannot be determined on file transfer
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-08-11 08:14:03 +07:00
Morris Jobke
c0be7e329f
Prefer typed event over string based ones
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-10 15:22:55 +07:00
Morris Jobke
782a2df392
Add PHP doc for events
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-08-10 14:24:24 +07:00
Robin Appelman
227e362842
allow grouping of activity settings
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2020-08-05 16:13:03 +07:00
Joas Schilling
ea8f68bea6
Hand in the route and the parameters of the request
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-08-05 12:52:16 +07:00
John Molakvoæ (skjnldsv)
d98f7c1bd8
Make apps handle the order logic
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-08-05 11:37:45 +07:00
John Molakvoæ (skjnldsv)
71b62c4203
Show mime icon, bump bundles, make the SearchResultEntry class non-abstract, Fix header search icon, various fixes
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-08-04 21:36:22 +07:00
John Molakvoæ (skjnldsv)
1a1b3e20e4
Fix unified search
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
2020-08-03 11:26:03 +07:00
Christoph Wurst
91e7f12088
Adjust apps' code to use the ContainerInterface
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-07-21 20:43:18 +07:00
rawtaz
97d82e2a64
Include circle shares when transferring ownership
2020-07-15 13:51:04 +07:00
rawtaz
6184604771
Include e-mail shares when transferring ownership
...
E-mail shares weren't included in the processing of shares when using the `occ files:transfer-ownership` command, so they'd be lost (not visible in either the former or the new account). This commit fixes that.
2020-07-11 16:51:40 +07:00
Roeland Jago Douma
1cf3280c8e
Lazy register the navigation
...
This makes sure that we do not translate unneeded strings on for example
webdav requests.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-07-09 10:12:53 +07:00
Julius Härtl
479aa975d3
Add removal of mounts without storages to files:cleanup command
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-07-07 12:36:59 +07:00
Joas Schilling
d7c0b9cced
Also always return in app commands
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-26 15:12:11 +07:00
Joas Schilling
89ed2c37bf
Update share type constant usage
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-24 16:49:16 +07:00
Christoph Wurst
f8e08a74ba
Implement unified search for Files
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-06-24 14:20:26 +07:00
Christoph Wurst
4488e846a5
Add unified search API
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-06-24 14:20:25 +07:00
Christoph Wurst
2b26bf1408
Migrate Files to the new bootstrap mechanism
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-06-22 10:19:00 +07:00
Christoph Wurst
cb057829f7
Update license headers for 19
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-29 11:57:22 +07:00
Daniel Kesselberg
3294f53942
Set exit code if something went wrong.
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-04-26 20:37:21 +07:00
Roeland Jago Douma
e983ae3b06
Add folder argument to files:scan-app-data
...
If you need to rescan something but don't feel like rescanning your
whole preview stash.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-04-22 13:27:33 +07:00
Christoph Wurst
28f8eb5dba
Add visibility to all constants
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 16:54:27 +07:00
Christoph Wurst
caff1023ea
Format control structures, classes, methods and function
...
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>
2020-04-10 14:19:56 +07:00
Christoph Wurst
14c996d982
Use elseif instead of else if
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10 10:35:09 +07:00
Christoph Wurst
42625a46be
Remove spaces after method or function call
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 16:05:56 +07:00
Christoph Wurst
afbd9c4e6e
Unify function spacing to PSR2 recommendation
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 13:54:22 +07:00
Christoph Wurst
41b5e5923a
Use exactly one empty line after the namespace declaration
...
For PSR2
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-09 11:48:10 +07:00
Joas Schilling
3ea37d0d10
Show the displayname instead of the user id
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-08 16:09:03 +07:00
Joas Schilling
f8a5812f98
Try to use the display name of file transfers
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-04-08 15:41:20 +07:00
Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-31 14:52:54 +07:00
Christoph Wurst
463b388589
Merge pull request #20170 from nextcloud/techdebt/remove-unused-imports
...
Remove unused imports
2020-03-27 17:14:08 +07:00
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-26 16:34:56 +07:00
Christoph Wurst
74936c49ea
Remove unused imports
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-25 22:08:08 +07:00
John Molakvoæ
9fda1ee39f
Merge pull request #19777 from nextcloud/fix/viewer-public
...
Properly emit Viewer event on files and files_sharing
2020-03-12 08:47:14 +07:00
John Molakvoæ (skjnldsv)
3cdadeb9e9
Use dispatchTyped
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-03-11 09:28:27 +07:00
John Molakvoæ (skjnldsv)
92a6530c0f
Properly emit Viewer event on files and files_sharing
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-03-11 09:28:27 +07:00
Joas Schilling
f4918f208e
Unify the code a bit
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-10 19:36:57 +07:00
Joas Schilling
bbef026aa0
Use contacts name on federated activities
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-10 19:36:56 +07:00
Joas Schilling
38292753ac
Combine move activities as well
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-10 09:32:52 +07:00
Christoph Wurst
68b764bb0f
Do not allow transfer ownership when the user isn't the owner
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-03 14:48:45 +07:00
Julius Härtl
1e8048abee
Make sure that the transfer entry is present in the database
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-02-24 15:01:39 +07:00
Christoph Wurst
dd9d4696f2
Merge pull request #19412 from nextcloud/fix/19404/make-favorite-public
...
Make TAG_FAVORITE public
2020-02-21 17:47:53 +07:00
Daniel Kesselberg
6235175b6d
Make TAG_FAVORITE public
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2020-02-12 15:11:58 +07:00
Joas Schilling
e2ca31119c
Fix event type
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-06 15:17:27 +07:00
Roeland Jago Douma
5bc0951267
Allow specifying this is the first login
...
On firstlogin we allow non empty target folders. So that for guest
transfers the user sees the same UI.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-02-03 11:15:57 +07:00
Tobia De Koninck
055ae9b2cd
Catch \Error in Transfer::restoreShares
...
This makes the command more fault tolerant. An \Error can happen when
e.g. the owner of a share is null.
If we don't catch this, the restore process will stop in an unknown
state.
Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
2020-02-03 11:15:56 +07:00
Tobia De Koninck
97508f69ec
Prevent transferring data to user which never loggedin
...
Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
2020-02-03 11:15:56 +07:00
Tobia De Koninck
7c56144f49
Add option to transfer-ownership to move data
...
This will move the home folder of own user to another user. Only allowed
if that other user's home folder is empty.
Can be used as workaround to rename users.
Signed-off-by: Tobia De Koninck <LEDfan@users.noreply.github.com>
2020-02-03 11:15:56 +07:00
John Molakvoæ (skjnldsv)
613860e0f4
Fix Sidebar legacy FileInfoModel requirement
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-01-16 15:07:57 +07:00
John Molakvoæ (skjnldsv)
22079347ea
Fix webdav url
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-01-10 12:13:05 +07:00
Roeland Jago Douma
04031f606a
Merge pull request #18478 from nextcloud/fix/direct-editing-invalid-editor-id
...
Do not generate tokens for editor IDs that do not exist
2019-12-22 14:27:28 +07:00
Julius Härtl
0ddb9c0136
Expose exception message in the response
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2019-12-20 11:10:33 +07:00
Christoph Wurst
1b46621cd3
Update license headers for 18
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-20 09:23:25 +07:00
Sascha Wiswedel
a1df5d1e98
added line breaks to incoming transfer notification
...
wrapped notifications into double quotes to make line breaks possible
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2019-12-17 10:38:15 +07:00
Sascha Wiswedel
6a6b6dd1a4
added patience note for sharee
...
note about incoming transfer taken out by background job
resolves #18272
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2019-12-17 10:38:14 +07:00
Sascha Wiswedel
a64b5de491
transfer ownership dialog word choice
...
Use Reject instead of Decline
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2019-12-17 10:38:14 +07:00
Sascha Wiswedel
f567566803
notification polishing
...
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2019-12-17 10:38:14 +07:00
Sascha Wiswedel
f1319e1bc5
Transfer ownership function polishing
...
Signed-off-by: Sascha Wiswedel <sascha.wiswedel@nextcloud.com>
2019-12-17 10:38:12 +07:00
blizzz
c96aa7e1a8
Merge pull request #18359 from nextcloud/fix/18271/dismiss_transfer_ownership_notification
...
Dismiss transferownership notification cancels transfer
2019-12-13 15:28:25 +07:00
Christoph Wurst
b81b824da1
Add typed events for the filesystem/scanner
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-13 09:41:05 +07:00
Roeland Jago Douma
3f21b7b70a
Dismiss transferownership notification cancels transfer
...
Fixes #18271
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-12-11 12:58:44 +07:00