summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-06-09 11:38:44 +0200
committerJulius Härtl <jus@bitgrid.net>2018-06-09 11:38:44 +0200
commitf5ecd1c100a9a09120f22ed9aa3d5753531ce360 (patch)
tree054be195b63dc995a0cc6ff62853f2330c899291
parentde66336f9c6cef3de5e298b48fdc3769bd307568 (diff)
downloadnextcloud-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.php1
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'])) {