@@ -232,6 +232,9 @@ discard block |
||
232 | 232 | return new JSONResponse($response); |
233 | 233 | } |
234 | 234 | |
235 | + /** |
|
236 | + * @param Wopi $wopi |
|
237 | + */ |
|
235 | 238 | private function setFederationFileInfo($wopi, $response) { |
236 | 239 | $remoteUserId = $wopi->getGuestDisplayname(); |
237 | 240 | $cloudID = \OC::$server->getCloudIdManager()->resolveCloudId($remoteUserId); |
@@ -276,6 +279,10 @@ discard block |
||
276 | 279 | } |
277 | 280 | } |
278 | 281 | |
282 | + /** |
|
283 | + * @param boolean $isPublic |
|
284 | + * @param string $userId |
|
285 | + */ |
|
279 | 286 | private function shouldWatermark($isPublic, $userId, $fileId, Wopi $wopi) { |
280 | 287 | if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_enabled', 'no') === 'no') { |
281 | 288 | return false; |