summaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-247-3/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix missing placeholders in translationsJoas Schilling2020-08-031-7/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* effectively revert 17fae47bdba84ed520fee2cbf1a9485cc14fbbcb fixing i10nArthur Schiwon2020-08-031-13/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* coding style fixesArthur Schiwon2020-07-301-3/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix check for Cloud ID, missing return statements, wrong param useArthur Schiwon2020-07-301-9/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Move federated_share_added into a typed eventMorris Jobke2020-07-233-11/+67
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the proper IAppContainer and IServerContainer type hints to know which ↵Morris Jobke2020-07-211-4/+4
| | | | | | code runs with which container Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust apps' code to use the ContainerInterfaceChristoph Wurst2020-07-211-6/+14
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix typoSergej Pupykin2020-07-161-1/+1
|
* Use IBootstrap for the app federatedfilesharingMorris Jobke2020-07-142-126/+65
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Move federatedfilesharing to migrationsJoas Schilling2020-07-061-0/+58
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #21264 from stweil/masterMorris Jobke2020-07-051-1/+1
|\ | | | | build: Fix some typos (most of them found by codespell)
| * build: Fix some typos (most of them found by codespell)Stefan Weil2020-06-061-1/+1
| | | | | | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* | Update share type constant usageJoas Schilling2020-06-242-13/+13
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix PSR-4 namespaceJoas Schilling2020-06-051-0/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-294-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Set proper share type when converting link shares to federated sharesJulius Härtl2020-04-211-0/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add visibility to all constantsChristoph Wurst2020-04-103-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1010-62/+8
| | | | | | | | | | | | | | | 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-102-2/+2
| | | | 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>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-097-6/+1
| | | | | | 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>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-314-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-271-5/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-251-5/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-264-9/+9
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Default value of lookupServerEnabled should be the same everywhereGeorg Ehrke2020-03-171-1/+1
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Use proper andwhere clauseRoeland Jago Douma2020-02-031-1/+1
| | | | | | Fixes #19248 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* remove non-circles-generated shares onlyMaxence Lange2020-01-071-1/+2
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Update license headers for 18Christoph Wurst2019-12-203-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* confirm auth on share generated by CirclesMaxence Lange2019-12-163-1/+19
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com> returns true Signed-off-by: Maxence Lange <maxence@artificial-owl.com> DI Signed-off-by: Maxence Lange <maxence@artificial-owl.com> DI Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* revert protectedJohn Molakvoæ2019-12-061-1/+1
|
* Fix external sharing loading scriptJohn Molakvoæ (skjnldsv)2019-12-061-2/+19
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update license headersChristoph Wurst2019-12-0513-17/+26
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-227-12/+7
| | | | | | | | | | | * 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>
* Merge pull request #17985 from nextcloud/enh/use_displayname_federated_shareRoeland Jago Douma2019-11-182-12/+24
|\ | | | | Use the displayname for federated notifications
| * Use the displayname for federated notificationsRoeland Jago Douma2019-11-182-12/+24
| | | | | | | | | | | | | | Since we have the showing this is a lot nicer. Especially on alrge isntances where the uid can be totally random. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Add the notifier and the API endpoint for user sharesJoas Schilling2019-11-121-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Get all shares as iterableRoeland Jago Douma2019-10-301-0/+27
| | | | | | | | | | | | Sometimes we need all shares or rather a specific subset of shares but creating dedicated functions is a pain. This just returns an iterable object for all shares so we can loop over them without allocating all the memory on the system. It should not be used by any user called code. But in an occ command or background job it is fine IMO. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow removing federated shares of locally reshared filesRoeland Jago Douma2019-10-031-0/+5
| | | | | | | | | | | | * UserA shares a folder to UserB * UserB does a federated share to userC@serverC * UserB now tries to revoke the federated share Before we always tried to notify the remote cloud. The case that the file was reshared locally was not considered. This patch makes sure not to try to notify a federated server if both users are local users. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update Federated sharing notifierJoas Schilling2019-07-151-1/+21
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Show share settings only if incoming federated shares are allowedMorris Jobke2019-05-311-4/+4
| | | | | | Fixes #15802 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Only show sharing section if it has contentJulius Härtl2019-05-201-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* update URL for federationJos Poortvliet2018-12-271-1/+1
|
* Fix logo path in personal federated sharing settingsJulius Härtl2018-10-291-6/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use numeric placeholders if there are multiple, so that RTL languages can ↵Joas Schilling2018-10-091-3/+3
| | | | | | operate better Signed-off-by: Joas Schilling <coding@schilljs.com>
* handle unshare request from ownerBjoern Schiessle2018-07-111-18/+25
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>