From 4f37e0ce55e9e837c9ef6910ba7ca52d522400f6 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Tue, 2 Mar 2021 16:32:13 +0100 Subject: Remove redundant casts For #25839 In short with the connection adapter we now have the function is typed to int (and casts itself). So it is not needed anymore. Signed-off-by: Roeland Jago Douma --- apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/federatedfilesharing') diff --git a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php index 0bd0287f606..63877f3307c 100644 --- a/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php +++ b/apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php @@ -258,7 +258,7 @@ class CloudFederationProviderFiles implements ICloudFederationProvider { ->setType('remote_share') ->setSubject(RemoteShares::SUBJECT_REMOTE_SHARE_RECEIVED, [$ownerFederatedId, trim($name, '/')]) ->setAffectedUser($shareWith) - ->setObject('remote_share', (int)$shareId, $name); + ->setObject('remote_share', $shareId, $name); \OC::$server->getActivityManager()->publish($event); $this->notifyAboutNewShare($shareWith, $shareId, $ownerFederatedId, $sharedByFederatedId, $name); } else { @@ -269,7 +269,7 @@ class CloudFederationProviderFiles implements ICloudFederationProvider { ->setType('remote_share') ->setSubject(RemoteShares::SUBJECT_REMOTE_SHARE_RECEIVED, [$ownerFederatedId, trim($name, '/')]) ->setAffectedUser($user->getUID()) - ->setObject('remote_share', (int)$shareId, $name); + ->setObject('remote_share', $shareId, $name); \OC::$server->getActivityManager()->publish($event); $this->notifyAboutNewShare($user->getUID(), $shareId, $ownerFederatedId, $sharedByFederatedId, $name); } -- cgit v1.2.3