Browse Source

Add UserId, UserFriendlyName to WOPI CheckFileInfo

tags/1.1.22
Pranav Kant 4 years ago
parent
commit
05b4d568f6
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      controller/documentcontroller.php

+ 5
- 1
controller/documentcontroller.php View File

@@ -438,11 +438,15 @@ class DocumentController extends Controller {
http_response_code(404);
return false;
}

$editorName = \OC::$server->getUserManager()->get($res['editor'])->getDisplayName();
\OC::$server->getLogger()->debug('File info: {info}.', [ 'app' => $this->appName, 'info' => $info ]);
return array(
'BaseFileName' => $info['name'],
'Size' => $info['size'],
'Version' => $version
'Version' => $version,
'UserId' => $res['editor'],
'UserFriendlyName' => $editorName
//'DownloadUrl' => '',
//'FileUrl' => '',
);


Loading…
Cancel
Save