mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: copy sharedBy[DisplayName] to sender[DisplayName], fixes #36340
Signed-off-by: Michiel de Jong <michiel@pondersource.com>
This commit is contained in:
parent
bbba8b4fe2
commit
dacb1d94d0
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue