Add category field to apps that are only known from the app store

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/9810/head
Julius Härtl 7 years ago
parent de66336f9c
commit f5ecd1c100
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 1
      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'])) {

Loading…
Cancel
Save