From d92d77c066725981a1c323d85d2015411c74a9fe Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Thu, 4 Mar 2021 21:35:04 +0100 Subject: =?UTF-8?q?=F0=9F=9A=91=20Fix=20errors=20in=20ShareService=20-=20c?= =?UTF-8?q?hange=20argument=20$id=20to=20$itemId=20-=20import=20Exceptions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- lib/Service/ShareService.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php index bb9bee241..db7f73c7e 100644 --- a/lib/Service/ShareService.php +++ b/lib/Service/ShareService.php @@ -15,6 +15,9 @@ use \OCA\News\Db\Feed; use \Psr\Log\LoggerInterface; +use OCA\News\Service\Exceptions\ServiceNotFoundException; +use OCP\AppFramework\Db\DoesNotExistException; + /** * Class ImportService * @@ -61,9 +64,9 @@ class ShareService /** * Share an item with a user * - * @param string $userId ID of user sharing the item - * @param int $id Item ID - * @param string $shareWithId ID of user to share with + * @param string $userId ID of user sharing the item + * @param int $itemId Item ID + * @param string $shareRecipientId ID of user to share with * * Sharing by copying - the item is duplicated, and the 'sharedBy' * field is filled accordingly. @@ -73,7 +76,7 @@ class ShareService * @return Item * @throws ServiceNotFoundException|ServiceConflictException */ - public function shareItemWithUser(string $userId, int $id, string $shareRecipientId) + public function shareItemWithUser(string $userId, int $itemId, string $shareRecipientId) { // find item to share try { -- cgit v1.2.3