apps/comments/lib/Activity/Provider.php 1 location
|
@@ 204-212 (lines=9) @@
|
| 201 |
|
* @param string $path |
| 202 |
|
* @return array |
| 203 |
|
*/ |
| 204 |
|
protected function generateFileParameter($id, $path) { |
| 205 |
|
return [ |
| 206 |
|
'type' => 'file', |
| 207 |
|
'id' => $id, |
| 208 |
|
'name' => basename($path), |
| 209 |
|
'path' => trim($path, '/'), |
| 210 |
|
'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $id]), |
| 211 |
|
]; |
| 212 |
|
} |
| 213 |
|
|
| 214 |
|
/** |
| 215 |
|
* @param string $uid |
apps/sharebymail/lib/Activity.php 1 location
|
@@ 230-238 (lines=9) @@
|
| 227 |
|
* @param string $path |
| 228 |
|
* @return array |
| 229 |
|
*/ |
| 230 |
|
protected function generateFileParameter($id, $path) { |
| 231 |
|
return [ |
| 232 |
|
'type' => 'file', |
| 233 |
|
'id' => $id, |
| 234 |
|
'name' => basename($path), |
| 235 |
|
'path' => trim($path, '/'), |
| 236 |
|
'link' => $this->url->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $id]), |
| 237 |
|
]; |
| 238 |
|
} |
| 239 |
|
|
| 240 |
|
/** |
| 241 |
|
* @param string $email |