Skip to content

Commit

Permalink
Merge pull request #447 from ONLYOFFICE/feature/reference-data-key
Browse files Browse the repository at this point in the history
Feature/reference data key
LinneyS authored Dec 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents cf13e7f + f5c71bb commit 01246fe
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,9 @@
### Changed
- compatible with ownCloud Web 7.0

## Added
- reference data from coediting

## 8.2.3
## Added
- Ukrainian translation
2 changes: 2 additions & 0 deletions controller/editorcontroller.php
Original file line number Diff line number Diff line change
@@ -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),

0 comments on commit 01246fe

Please sign in to comment.