summaryrefslogtreecommitdiffstats
path: root/lib/Service/ShareService.php
AgeCommit message (Collapse)Author
2021-06-16๐Ÿš‘ Item: set id to null in clone functionMarco Nassabain
This is done to set the id to null BEFORE resetting the updated fields. The purpose of this is to avoid explicitly adding a NULL id into the DB, which provokes an error in some DBMS (like postgres). Fixes #1375 Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐ŸŽจ Rename $l to $l10nMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ๏ธ Fix comments in ShareServiceMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœจ Add sharer display name into shared itemsMarco Nassabain
- Add mapSharedByDisplayNames in ShareService - Update ItemController to call function on items Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿงน ShareService: rename $url to $urlGeneratorMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐ŸŽจ ShareService: update dummy feed URLMarco Nassabain
- add IURLGenerator DI - update url to "http://serverurl/news/sharedwithme" - updated tests: added DI + adapted expected url Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐ŸŒ ShareService: Localize dummy feed titleMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿงน Cleanup code, remove spaces, rename variablesMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿš‘ Fix newsItem insert errorMarco Nassabain
- add Item::__clone method resetting updated fields - set item id to null in ShareService Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿš‘ Fix exception handling in ShareServiceMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿš‘ Fix ItemController::shareMarco Nassabain
- call correct ShareService function - correct ShareService className annotation Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿš‘ Fix errors in ShareServiceMarco Nassabain
- change argument $id to $itemId - import Exceptions Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿš‘ Fix circular inclusion: create ShareServiceMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>