@@ 1006-1008 (lines=3) @@ | ||
1003 | } |
|
1004 | ||
1005 | if ($share->getState() === $state) { |
|
1006 | if ($eventName !== '') { |
|
1007 | $this->eventDispatcher->dispatch('share.after' . $eventName, new GenericEvent(null, ['share' => $share])); |
|
1008 | } |
|
1009 | // if there are no changes in the state, just return the share as if the change was successful |
|
1010 | $node->unlock(\OCP\Lock\ILockingProvider::LOCK_SHARED); |
|
1011 | return new Result([$this->formatShare($share, true)]); |
|
@@ 1047-1049 (lines=3) @@ | ||
1044 | ||
1045 | $this->notificationPublisher->discardNotificationForUser($share, $this->currentUser->getUID()); |
|
1046 | ||
1047 | if ($eventName !== '') { |
|
1048 | $this->eventDispatcher->dispatch('share.after' . $eventName, new GenericEvent(null, ['share' => $share])); |
|
1049 | } |
|
1050 | return new Result([$this->formatShare($share, true)]); |
|
1051 | } |
|
1052 |