summaryrefslogtreecommitdiffstats
path: root/apps/comments
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-08-05 09:49:18 +0200
committernpmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>2020-08-05 12:52:16 +0000
commitea8f68bea6957ae459ff1ba6849b25354b3f0093 (patch)
treeb6523d1ad1c01e55622fd31bfcfb27daabec0593 /apps/comments
parentd98f7c1bd83fc03fd297ebeac6279ffe17316950 (diff)
downloadnextcloud-server-ea8f68bea6957ae459ff1ba6849b25354b3f0093.tar.gz
nextcloud-server-ea8f68bea6957ae459ff1ba6849b25354b3f0093.zip
Hand in the route and the parameters of the request
Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/comments')
-rw-r--r--apps/comments/lib/Search/CommentsSearchProvider.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/comments/lib/Search/CommentsSearchProvider.php b/apps/comments/lib/Search/CommentsSearchProvider.php
index bab10a58eeb..e6443c20a2f 100644
--- a/apps/comments/lib/Search/CommentsSearchProvider.php
+++ b/apps/comments/lib/Search/CommentsSearchProvider.php
@@ -77,7 +77,11 @@ class CommentsSearchProvider implements IProvider {
/**
* @inheritDoc
*/
- public function getOrder(string $from): int {
+ public function getOrder(string $route, array $routeParameters): int {
+ if ($route === 'files.View.index') {
+ // Files first
+ return 0;
+ }
return 10;
}