Add UserId, UserFriendlyName to WOPI CheckFileInfo

pull/1/head
Pranav Kant 8 vuotta sitten
vanhempi 7c4aa05c20
commit 05b4d568f6

@ -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' => '',
);

Ladataan…
Peruuta
Tallenna