@@ -215,6 +215,9 @@ discard block |
||
215 | 215 | return new JSONResponse($response); |
216 | 216 | } |
217 | 217 | |
218 | + /** |
|
219 | + * @param Wopi $wopi |
|
220 | + */ |
|
218 | 221 | private function setFederationFileInfo($wopi, $response) { |
219 | 222 | $remoteUserId = $wopi->getGuestDisplayname(); |
220 | 223 | $cloudID = \OC::$server->getCloudIdManager()->resolveCloudId($remoteUserId); |
@@ -235,6 +238,10 @@ discard block |
||
235 | 238 | return $response; |
236 | 239 | } |
237 | 240 | |
241 | + /** |
|
242 | + * @param boolean $isPublic |
|
243 | + * @param string $userId |
|
244 | + */ |
|
238 | 245 | private function shouldWatermark($isPublic, $userId, $fileId, Wopi $wopi) { |
239 | 246 | if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_enabled', 'no') === 'no') { |
240 | 247 | return false; |