diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-06-09 11:38:44 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-06-09 11:38:44 +0200 |
commit | f5ecd1c100a9a09120f22ed9aa3d5753531ce360 (patch) | |
tree | 054be195b63dc995a0cc6ff62853f2330c899291 | |
parent | de66336f9c6cef3de5e298b48fdc3769bd307568 (diff) | |
download | nextcloud-server-f5ecd1c100a9a09120f22ed9aa3d5753531ce360.tar.gz nextcloud-server-f5ecd1c100a9a09120f22ed9aa3d5753531ce360.zip |
Add category field to apps that are only known from the app store
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | settings/Controller/AppSettingsController.php | 1 |
1 files changed, 1 insertions, 0 deletions
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'])) { |