summaryrefslogtreecommitdiffstats
path: root/lib/Share
AgeCommit message (Collapse)Author
2024-03-08fix(CI): Fix psalmJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-03-08perf: improve performance of resolving recipient sharesRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-03-07fix(federation): Don't allow sharing, flows, search and collaboration in ↵Joas Schilling
proxy conversations Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-02-02fix(l10n): Don't use the word "Room" in UI stringsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-02-01fix(CS): Prepare coding standard updateJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-01-18also filter by storage when getting shares in folderRobin Appelman
2023-12-11fix(CI): Make psalm more happy about not returning nullJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-12-05Preload the files metadata and cache photos-sizeJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-23fix(events)!: Remove deprecated eventsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-10-27fix(events): Migrate share deletion to typed eventJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-10-27fix(events): Migrate Talk/ listeners to registerEventListener()Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-10-20fix(events): Migrate "already shared" to typed eventJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-16fix(CI): Make psalm a level more aggressive with straight forward changesJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-04fix: Stop using Symfony event dispatcher directlyJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-11Use PHP8's constructor property promotionHamid Dehnavi
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2023-06-26fix(CI): FIx coding styleJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-13chore(CS): Unify construct() callsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-13automated: Apply CS fixJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-03-17Explicit the default sort order by as 'ASC'Vitor Mattos
https://github.com/nextcloud/spreed/issues/9077 Signed-off-by: Vitor Mattos <vitor@php.rio>
2023-02-14fix(share): Use transaction to avoid read-after-write issueThomas Citharel
When creating a share, we're reading from the database straight afterwards saving it Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-11-05Fix permissions returned by getSharesInFolderDariusz Olszewski
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-10-04Move getParticipant()Joas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-09-01Adjust coding styleJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-24Merge pull request #7743 from starypatyk/enh/noid/optimize_share_readingJoas Schilling
Reduce number of queries required to read shares
2022-08-24Fix docsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-23Misleading comment correctedDariusz Olszewski
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-08-23Return type annotation correctedDariusz Olszewski
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-08-22Static analysis (psalm)Dariusz Olszewski
Psalm uncovered a logic error regarding passing $shares array to resolveSharesForRecipient :-) Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-08-22lintDariusz Olszewski
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-08-17Refactor getShareById/getSharesByIdsDariusz Olszewski
Also fix handling of inaccessible shares Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-08-17Minor refactoringDariusz Olszewski
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-08-17Invalidate cache on delete/update function callsDariusz Olszewski
(Nuclear option - clean the cache entirely) Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-08-17Apply suggestions from code reviewDariusz Olszewski
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com> Signed-off-by: Dariusz Olszewski <8277636+starypatyk@users.noreply.github.com>
2022-08-16Use bigger sliceCarl Schwan
This reduce the number of queries considerably. For me on the production instance I went from 120 queries to 103 queries on the activity page. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-13Reduce number of queries required to read sharesDariusz Olszewski
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
2022-07-26Add `$shallow` arg to `RoomShareProvider::getSharesInFolder`Louis Chemineau
A new `$shallow` argument was introduced to `IShareProvider::getSharesInFolder` in NC25 by https://github.com/nextcloud/server/pull/31728. This PR adds this new argument and the necessary changes to make it work based on this example https://github.com/nextcloud/server/pull/31728/files#diff-dee1351696d7eae959761edf66c8e5a9052e28be73319733d857a9ab2d9fc967= Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-05-11Use \OCP\Server::get() instead of private APIJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-27Disallow sharing without chat permissionsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-04-22Change property typeVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-04-20Fix inverted argumentVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-04-20Move system message listeners to static methodsVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-04-14Remove event to delete shares when user leave of roomVitor Mattos
Fix integration tests Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-04-07Convert to null coalescing assignment operatorVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-04-06Use PHP7.4 property typehinting where possibleVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-03-21Only add the share_with_link url when the link is accessibleJoas Schilling
Otherwise the comment from the catch block applies: "Removing the conversation token from the leaked data if not a participant ..." Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-11Fix InvalidScalarArgumentVitor Mattos
Argument 1 of OCA\Talk\Share\RoomShareProvider::getShareById expects int, string provided Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-02-10Solve InvalidScalarArgumentVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-02-09Update coding standardJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-06Replace deprecated methodVitor Mattos
deprecated 20.0.0 use \Psr\Container\ContainerInterface::get Signed-off-by: Vitor Mattos <vitor@php.rio>
2021-10-19replace execute by executeQuery of QueryBuilderVitor Mattos
Signed-off-by: Vitor Mattos <vitor@php.rio>