diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 16:32:13 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2021-03-02 16:32:13 +0100 |
commit | 4f37e0ce55e9e837c9ef6910ba7ca52d522400f6 (patch) | |
tree | cc1551f37853dc1055bed2f64f502e2ebc3a4ab2 /apps/federatedfilesharing/lib | |
parent | 2afa1c57393790b33bc6593f9215482d8a4dd9f9 (diff) | |
download | nextcloud-server-4f37e0ce55e9e837c9ef6910ba7ca52d522400f6.tar.gz nextcloud-server-4f37e0ce55e9e837c9ef6910ba7ca52d522400f6.zip |
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 <roeland@famdouma.nl>
Diffstat (limited to 'apps/federatedfilesharing/lib')
-rw-r--r-- | apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |