apps/federatedfilesharing/lib/Notifications.php 1 location
|
@@ 104-107 (lines=4) @@
|
| 101 |
|
$result = $this->tryHttpPostToShareEndpoint($remote, '', $fields); |
| 102 |
|
$status = json_decode($result['result'], true); |
| 103 |
|
|
| 104 |
|
if ($result['success'] && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200)) { |
| 105 |
|
\OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $remote]); |
| 106 |
|
return true; |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
} |
| 110 |
|
|
lib/private/Share/Share.php 1 location
|
@@ 2797-2800 (lines=4) @@
|
| 2794 |
|
$result = self::tryHttpPostToShareEndpoint($url, '', $fields); |
| 2795 |
|
$status = json_decode($result['result'], true); |
| 2796 |
|
|
| 2797 |
|
if ($result['success'] && ($status['ocs']['meta']['statuscode'] === 100 || $status['ocs']['meta']['statuscode'] === 200)) { |
| 2798 |
|
\OC_Hook::emit('OCP\Share', 'federated_share_added', ['server' => $remote]); |
| 2799 |
|
return true; |
| 2800 |
|
} |
| 2801 |
|
|
| 2802 |
|
} |
| 2803 |
|
|