|
@@ 1011-1013 (lines=3) @@
|
| 1008 |
|
} |
| 1009 |
|
|
| 1010 |
|
if ($share->getState() === $state) { |
| 1011 |
|
if ($eventName !== '') { |
| 1012 |
|
$this->eventDispatcher->dispatch('share.after' . $eventName, new GenericEvent(null, ['share' => $share])); |
| 1013 |
|
} |
| 1014 |
|
// if there are no changes in the state, just return the share as if the change was successful |
| 1015 |
|
$node->unlock(\OCP\Lock\ILockingProvider::LOCK_SHARED); |
| 1016 |
|
return new Result([$this->formatShare($share, true)]); |
|
@@ 1052-1054 (lines=3) @@
|
| 1049 |
|
|
| 1050 |
|
$this->notificationPublisher->discardNotificationForUser($share, $this->currentUser->getUID()); |
| 1051 |
|
|
| 1052 |
|
if ($eventName !== '') { |
| 1053 |
|
$this->eventDispatcher->dispatch('share.after' . $eventName, new GenericEvent(null, ['share' => $share])); |
| 1054 |
|
} |
| 1055 |
|
return new Result([$this->formatShare($share, true)]); |
| 1056 |
|
} |
| 1057 |
|
|