@@ -30,7 +30,6 @@ |
||
30 | 30 | use OCP\Activity\IManager; |
31 | 31 | use OCP\DB\QueryBuilder\IQueryBuilder; |
32 | 32 | use OCP\IDBConnection; |
33 | -use OCP\IL10N; |
|
34 | 33 | |
35 | 34 | /** |
36 | 35 | * @brief Class for managing the data in the activities |
@@ -158,6 +158,7 @@ |
||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * @param IEvent $event |
161 | + * @param integer $id |
|
161 | 162 | * @return array |
162 | 163 | */ |
163 | 164 | protected function eventToArray(IEvent $event, $id) { |
@@ -23,7 +23,6 @@ |
||
23 | 23 | namespace OCA\Activity; |
24 | 24 | |
25 | 25 | use OCA\Activity\Extension\LegacyParser; |
26 | -use OCA\Activity\Parameter\IParameter; |
|
27 | 26 | use OCP\Activity\IEvent; |
28 | 27 | use OCP\Activity\IManager; |
29 | 28 | use OCP\IL10N; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @return mixed |
|
60 | + * @return string |
|
61 | 61 | */ |
62 | 62 | public function getParameter() { |
63 | 63 | return $this->random; |
@@ -199,6 +199,11 @@ |
||
199 | 199 | return new DataResponse(); |
200 | 200 | } |
201 | 201 | |
202 | + /** |
|
203 | + * @param string $type |
|
204 | + * @param string $path |
|
205 | + * @param string|null $path2 |
|
206 | + */ |
|
202 | 207 | protected function getSubject($type, $path, $path2) { |
203 | 208 | switch ($type) { |
204 | 209 | case 'Create': |
@@ -221,6 +221,10 @@ |
||
221 | 221 | } |
222 | 222 | } |
223 | 223 | |
224 | + /** |
|
225 | + * @param integer $time |
|
226 | + * @param string|null $actor |
|
227 | + */ |
|
224 | 228 | protected function generateRemoteActivity(array $remoteUsers, $type, $time, $actor, $ownerPath = false) { |
225 | 229 | foreach ($remoteUsers as $remoteUser => $info) { |
226 | 230 | if ($actor === $remoteUser) { |