From dc2faa13f71d5c8477ee88157112df0206546caf Mon Sep 17 00:00:00 2001 From: rivexe Date: Tue, 26 Dec 2023 11:19:25 +0300 Subject: [PATCH] key added to referenceData --- CHANGELOG.md | 1 + controller/editorcontroller.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0cd0c883..7addc5a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ## Added - advanced access rights for talk files and share links +- reference data from coediting ## 7.9.4 ## Changed diff --git a/controller/editorcontroller.php b/controller/editorcontroller.php index bb70f8ca..27e49c15 100644 --- a/controller/editorcontroller.php +++ b/controller/editorcontroller.php @@ -602,10 +602,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),