From c9c9e023ab4bf5636b90e6cb305b2df07107874f Mon Sep 17 00:00:00 2001 From: Brtbr Date: Wed, 26 Oct 2022 19:29:28 +0200 Subject: [PATCH] fix: results now showing up in ios app --- lib/Search/Provider.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/Search/Provider.php b/lib/Search/Provider.php index 615aaf3..8efb9c1 100644 --- a/lib/Search/Provider.php +++ b/lib/Search/Provider.php @@ -77,17 +77,17 @@ class Provider implements IProvider { $query ); - $results = array_map(function(Room $room) { - return [ - new SearchResultEntry( - '', - $room->getName(), - $this->getAccess($room->getAccess()), - $this->urlGenerator->linkToRoute('bbb.page.index'), - $this->urlGenerator->imagePath('bbb', 'app-grey.svg') - ) - ]; - }, $rooms); + $results = []; + + foreach($rooms as $room) { + $results[] = new SearchResultEntry( + '', + $room->getName(), + $this->getAccess($room->getAccess()), + $this->urlGenerator->linkToRouteAbsolute('bbb.page.index'), + $this->urlGenerator->imagePath('bbb', 'app-grey.svg') + ); + } return SearchResult::complete( 'BBB',