mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
add 'received_from' info to the share, so that every share can have a different value
This commit is contained in:
parent
c3c255b0ca
commit
3ccbc25dba
1 changed files with 4 additions and 2 deletions
|
|
@ -175,8 +175,10 @@ class Api {
|
|||
if($share) {
|
||||
$receivedFrom = \OCP\Share::getItemSharedWithBySource($itemType, $file['fileid']);
|
||||
if ($receivedFrom) {
|
||||
$share['received_from'] = $receivedFrom['uid_owner'];
|
||||
$share['received_from_displayname'] = \OCP\User::getDisplayName($receivedFrom['uid_owner']);
|
||||
reset($share);
|
||||
$key = key($share);
|
||||
$share[$key]['received_from'] = $receivedFrom['uid_owner'];
|
||||
$share[$key]['received_from_displayname'] = \OCP\User::getDisplayName($receivedFrom['uid_owner']);
|
||||
}
|
||||
$result = array_merge($result, $share);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue