apps/federatedfilesharing/lib/Notifications.php 1 location
|
@@ 103-106 (lines=4) @@
|
| 100 |
|
$result = $this->tryHttpPostToShareEndpoint($remote, '', $fields); |
| 101 |
|
$status = json_decode($result['result'], true); |
| 102 |
|
|
| 103 |
|
if ($result['success'] && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200)) { |
| 104 |
|
\OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $remote]); |
| 105 |
|
return true; |
| 106 |
|
} |
| 107 |
|
|
| 108 |
|
} |
| 109 |
|
|
lib/private/Share/Share.php 1 location
|
@@ 2039-2042 (lines=4) @@
|
| 2036 |
|
$result = self::tryHttpPostToShareEndpoint($url, '', $fields); |
| 2037 |
|
$status = json_decode($result['result'], true); |
| 2038 |
|
|
| 2039 |
|
if ($result['success'] && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200)) { |
| 2040 |
|
\OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $remote]); |
| 2041 |
|
return true; |
| 2042 |
|
} |
| 2043 |
|
|
| 2044 |
|
} |
| 2045 |
|
|