diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php
index 69219db8cb36b10c34924752e6a17ed1a68896e5..861025c593374ddbb4e85aa992baf808ff61a9e0 100644
--- a/apps/files_sharing/lib/updater.php
+++ b/apps/files_sharing/lib/updater.php
@@ -86,7 +86,7 @@ class Shared_Updater {
 	static public function shareHook($params) {
 		if ($params['itemType'] === 'file' || $params['itemType'] === 'folder') {
 			$uidOwner = \OCP\User::getUser();
-			$users = \OCP\Share::getUsersItemShared('file', $params['fileSource'], $uidOwner, true);
+			$users = \OCP\Share::getUsersItemShared($params['itemType'], $params['fileSource'], $uidOwner, true);
 			if (!empty($users)) {
 				while (!empty($users)) {
 					$reshareUsers = array();