Skip to content

Commit eeb41be

Browse files
Merge pull request #55902 from nextcloud/backport/55827/stable32
[stable32] fix(ocm-sharing): The owner needs to be set for sharing to work
2 parents 1b88f67 + 617dc79 commit eeb41be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/federatedfilesharing/lib/OCM/CloudFederationProviderFiles.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function shareReceived(ICloudFederationShare $share) {
108108

109109
$token = $share->getShareSecret();
110110
$name = $share->getResourceName();
111-
$owner = $share->getOwnerDisplayName();
111+
$owner = $share->getOwnerDisplayName() ?: $share->getOwner();
112112
$sharedBy = $share->getSharedByDisplayName();
113113
$shareWith = $share->getShareWith();
114114
$remoteId = $share->getProviderId();

0 commit comments

Comments
 (0)