Skip to content

Commit 6aaefe2

Browse files
Copy sharedBy[DisplayName] to sender[DisplayName], fixes nextcloud#36340
Signed-off-by: Michiel de Jong <michiel@pondersource.com>
1 parent bbba8b4 commit 6aaefe2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/private/Federation/CloudFederationShare.php

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class CloudFederationShare implements ICloudFederationShare {
2020
'ownerDisplayName' => '',
2121
'sharedBy' => '',
2222
'sharedByDisplayName' => '',
23+
'sender' => '',
24+
'senderDisplayName' => '',
2325
'protocol' => []
2426
];
2527

@@ -155,6 +157,7 @@ public function setOwnerDisplayName($ownerDisplayName) {
155157
*/
156158
public function setSharedBy($sharedBy) {
157159
$this->share['sharedBy'] = $sharedBy;
160+
$this->share['sender'] = $sharedBy;
158161
}
159162

160163
/**
@@ -166,6 +169,7 @@ public function setSharedBy($sharedBy) {
166169
*/
167170
public function setSharedByDisplayName($sharedByDisplayName) {
168171
$this->share['sharedByDisplayName'] = $sharedByDisplayName;
172+
$this->share['senderDisplayName'] = $sharedByDisplayName;
169173
}
170174

171175
/**

0 commit comments

Comments
 (0)