Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-02 18:32:13 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-02 18:32:13 +0300
commit4f37e0ce55e9e837c9ef6910ba7ca52d522400f6 (patch)
treecc1551f37853dc1055bed2f64f502e2ebc3a4ab2 /apps/federatedfilesharing/lib/OCM
parent2afa1c57393790b33bc6593f9215482d8a4dd9f9 (diff)
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/OCM')
-rw-r--r--apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php4
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);
}