fix: copy sharedBy[DisplayName] to sender[DisplayName], fixes #36340

Signed-off-by: Michiel de Jong <michiel@pondersource.com>
This commit is contained in:
Michiel de Jong 2025-01-07 15:30:42 +01:00
parent bbba8b4fe2
commit dacb1d94d0

View file

@ -20,6 +20,8 @@ class CloudFederationShare implements ICloudFederationShare {
'ownerDisplayName' => '',
'sharedBy' => '',
'sharedByDisplayName' => '',
'sender' => '',
'senderDisplayName' => '',
'protocol' => []
];
@ -155,6 +157,7 @@ class CloudFederationShare implements ICloudFederationShare {
*/
public function setSharedBy($sharedBy) {
$this->share['sharedBy'] = $sharedBy;
$this->share['sender'] = $sharedBy;
}
/**
@ -166,6 +169,7 @@ class CloudFederationShare implements ICloudFederationShare {
*/
public function setSharedByDisplayName($sharedByDisplayName) {
$this->share['sharedByDisplayName'] = $sharedByDisplayName;
$this->share['senderDisplayName'] = $sharedByDisplayName;
}
/**