apps/federatedfilesharing/lib/Notifications.php 1 location
|
@@ 105-108 (lines=4) @@
|
| 102 |
|
$result = $this->tryHttpPostToShareEndpoint($remote, '', $fields); |
| 103 |
|
$status = json_decode($result['result'], true); |
| 104 |
|
|
| 105 |
|
if ($result['success'] && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200)) { |
| 106 |
|
\OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $remote]); |
| 107 |
|
return true; |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
} |
| 111 |
|
|
lib/private/Share/Share.php 1 location
|
@@ 2116-2119 (lines=4) @@
|
| 2113 |
|
$result = self::tryHttpPostToShareEndpoint($url, '', $fields); |
| 2114 |
|
$status = json_decode($result['result'], true); |
| 2115 |
|
|
| 2116 |
|
if ($result['success'] && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200)) { |
| 2117 |
|
\OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $remote]); |
| 2118 |
|
return true; |
| 2119 |
|
} |
| 2120 |
|
|
| 2121 |
|
} |
| 2122 |
|
|