Merge pull request #55902 from nextcloud/backport/55827/stable32

[stable32] fix(ocm-sharing): The owner needs to be set for sharing to work
This commit is contained in:
Joas Schilling 2025-10-24 11:56:25 +02:00 committed by GitHub
commit eeb41bef6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,7 +108,7 @@ class CloudFederationProviderFiles implements ISignedCloudFederationProvider {
$token = $share->getShareSecret();
$name = $share->getResourceName();
$owner = $share->getOwnerDisplayName();
$owner = $share->getOwnerDisplayName() ?: $share->getOwner();
$sharedBy = $share->getSharedByDisplayName();
$shareWith = $share->getShareWith();
$remoteId = $share->getProviderId();