diff --git a/CHANGELOG.md b/CHANGELOG.md index 98da63be..3d9f7604 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ ### Changed - compatible with ownCloud Web 7.0 +## Added +- reference data from coediting + ## 8.2.3 ## Added - Ukrainian translation diff --git a/controller/editorcontroller.php b/controller/editorcontroller.php index a78f4fa7..5fb12953 100644 --- a/controller/editorcontroller.php +++ b/controller/editorcontroller.php @@ -597,10 +597,12 @@ public function reference($referenceData, $path = null) { $fileName = $file->getName(); $ext = strtolower(pathinfo($fileName, PATHINFO_EXTENSION)); + $key = $this->fileUtility->getKey($file); $response = [ "fileType" => $ext, "path" => $userFolder->getRelativePath($file->getPath()), + "key" => $key, "referenceData" => [ "fileKey" => $file->getId(), "instanceId" => $this->config->getSystemValue("instanceid", true),