@@ 280-284 (lines=5) @@ | ||
277 | } |
|
278 | } |
|
279 | } |
|
280 | if ($requery) { |
|
281 | $shared_items = \OCP\Share::getItemsSharedWith('ownnote', 'populated_shares'); |
|
282 | $results = array_merge($this->findNotesFromUser($uid), $shared_items); |
|
283 | $requery = false; |
|
284 | } |
|
285 | ||
286 | // Tests to add a bunch of notes |
|
287 | //$now = new DateTime(); |
|
@@ 380-383 (lines=4) @@ | ||
377 | } |
|
378 | } |
|
379 | } |
|
380 | if ($requery) { |
|
381 | $shared_items = \OCP\Share::getItemsSharedWith('ownnote', 'populated_shares'); |
|
382 | $results = array_merge($this->findNotesFromUser($uid), $shared_items); |
|
383 | } |
|
384 | // Now also make sure the files exist, they may not if the user switched folders in admin. |
|
385 | if ($results) |
|
386 | foreach ($results as $result) { |