Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-09-04 13:48:39 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-09-04 14:24:32 +0300
commitab977712fc181fd081942bccd6882ec4334a21e4 (patch)
tree664e14540aee067d0fb2b85b8bf3aa2b976ce35a /lib
parentde083a1afc14e3f00fcacfa08bdabb8f1edb4d17 (diff)
Enable remote image insert and sharing
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/WopiController.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Controller/WopiController.php b/lib/Controller/WopiController.php
index 26bb964a..13bf5655 100644
--- a/lib/Controller/WopiController.php
+++ b/lib/Controller/WopiController.php
@@ -140,7 +140,9 @@ class WopiController extends Controller {
'UserCanWrite' => $wopi->getCanwrite(),
'UserCanNotWriteRelative' => \OC::$server->getEncryptionManager()->isEnabled() ? true : is_null($wopi->getEditorUid()),
'PostMessageOrigin' => $wopi->getServerHost(),
- 'LastModifiedTime' => Helper::toISO8601($file->getMTime())
+ 'LastModifiedTime' => Helper::toISO8601($file->getMTime()),
+ 'EnableInsertRemoteImage' => true,
+ 'EnableShare' => true,
];
$serverVersion = $this->config->getSystemValue('version');