|
@@ 992-994 (lines=3) @@
|
| 989 |
|
} |
| 990 |
|
|
| 991 |
|
if ($share->getState() === $state) { |
| 992 |
|
if ($eventName !== '') { |
| 993 |
|
$this->eventDispatcher->dispatch('share.after' . $eventName, new GenericEvent(null, ['share' => $share])); |
| 994 |
|
} |
| 995 |
|
// if there are no changes in the state, just return the share as if the change was successful |
| 996 |
|
$node->unlock(\OCP\Lock\ILockingProvider::LOCK_SHARED); |
| 997 |
|
return new \OC\OCS\Result([$this->formatShare($share, true)]); |
|
@@ 1033-1035 (lines=3) @@
|
| 1030 |
|
|
| 1031 |
|
$this->notificationPublisher->discardNotificationForUser($share, $this->currentUser->getUID()); |
| 1032 |
|
|
| 1033 |
|
if ($eventName !== '') { |
| 1034 |
|
$this->eventDispatcher->dispatch('share.after' . $eventName, new GenericEvent(null, ['share' => $share])); |
| 1035 |
|
} |
| 1036 |
|
return new \OC\OCS\Result([$this->formatShare($share, true)]); |
| 1037 |
|
} |
| 1038 |
|
|