File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
apps/admin_audit/lib/Actions Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function shared(array $params): void {
5050 $ params ,
5151 [
5252 'itemType ' ,
53- 'itemTarget ' ,
53+ 'path ' ,
5454 'itemSource ' ,
5555 'permissions ' ,
5656 'id ' ,
@@ -62,7 +62,7 @@ public function shared(array $params): void {
6262 $ params ,
6363 [
6464 'itemType ' ,
65- 'itemTarget ' ,
65+ 'path ' ,
6666 'itemSource ' ,
6767 'shareWith ' ,
6868 'permissions ' ,
@@ -75,7 +75,7 @@ public function shared(array $params): void {
7575 $ params ,
7676 [
7777 'itemType ' ,
78- 'itemTarget ' ,
78+ 'path ' ,
7979 'itemSource ' ,
8080 'shareWith ' ,
8181 'permissions ' ,
@@ -88,7 +88,7 @@ public function shared(array $params): void {
8888 $ params ,
8989 [
9090 'itemType ' ,
91- 'itemTarget ' ,
91+ 'path ' ,
9292 'itemSource ' ,
9393 'shareWith ' ,
9494 'permissions ' ,
@@ -101,7 +101,7 @@ public function shared(array $params): void {
101101 $ params ,
102102 [
103103 'itemType ' ,
104- 'itemTarget ' ,
104+ 'path ' ,
105105 'itemSource ' ,
106106 'shareWith ' ,
107107 'permissions ' ,
@@ -114,7 +114,7 @@ public function shared(array $params): void {
114114 $ params ,
115115 [
116116 'itemType ' ,
117- 'itemTarget ' ,
117+ 'path ' ,
118118 'itemSource ' ,
119119 'shareWith ' ,
120120 'permissions ' ,
@@ -127,7 +127,7 @@ public function shared(array $params): void {
127127 $ params ,
128128 [
129129 'itemType ' ,
130- 'itemTarget ' ,
130+ 'path ' ,
131131 'itemSource ' ,
132132 'shareWith ' ,
133133 'permissions ' ,
@@ -140,7 +140,7 @@ public function shared(array $params): void {
140140 $ params ,
141141 [
142142 'itemType ' ,
143- 'itemTarget ' ,
143+ 'path ' ,
144144 'itemSource ' ,
145145 'shareWith ' ,
146146 'permissions ' ,
@@ -153,7 +153,7 @@ public function shared(array $params): void {
153153 $ params ,
154154 [
155155 'itemType ' ,
156- 'itemTarget ' ,
156+ 'path ' ,
157157 'itemSource ' ,
158158 'shareWith ' ,
159159 'permissions ' ,
Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ public function postShare(GenericEvent $e) {
170170 'shareWith ' => $ share ->getSharedWith (),
171171 'itemTarget ' => $ share ->getTarget (),
172172 'fileTarget ' => $ share ->getTarget (),
173+ 'path ' => $ share ->getNode ()->getPath (),
173174 ];
174175
175176 \OC_Hook::emit (Share::class, 'post_shared ' , $ postHookData );
Original file line number Diff line number Diff line change @@ -342,6 +342,7 @@ public function testPostShare() {
342342 'permissions ' => Constants::PERMISSION_ALL ,
343343 'expiration ' => $ date ,
344344 'token ' => 'token ' ,
345+ 'path ' => null ,
345346 ];
346347
347348 $ hookListner
You can’t perform that action at this time.
0 commit comments