From f5ecd1c100a9a09120f22ed9aa3d5753531ce360 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Sat, 9 Jun 2018 11:38:44 +0200 Subject: Add category field to apps that are only known from the app store MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/Controller/AppSettingsController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index 8cfa2a004e4..b103a17ca11 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -253,6 +253,7 @@ class AppSettingsController extends Controller { $apps = array_map(function($appData) use ($dependencyAnalyzer) { $appstoreData = $appData['appstoreData']; $appData['screenshot'] = isset($appstoreData['screenshots'][0]['url']) ? 'https://usercontent.apps.nextcloud.com/'.base64_encode($appstoreData['screenshots'][0]['url']) : ''; + $appData['category'] = $appstoreData['categories']; $newVersion = $this->installer->isUpdateAvailable($appData['id']); if($newVersion && $this->appManager->isInstalled($appData['id'])) { -- cgit v1.2.3