Merge pull request #10506 from nextcloud/fix/10504/not_all_apps_are_appstore

Not all apps are from the appstore
This commit is contained in:
Roeland Jago Douma 2018-08-02 19:32:51 +02:00 committed by GitHub
commit 9057621d64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -251,9 +251,11 @@ class AppSettingsController extends Controller {
// Extend existing app details
$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'];
if (isset($appData['appstoreData'])) {
$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) {