summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-10-19 23:25:29 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-11-18 22:24:59 +0100
commita7ffdcd3dd5612e594094f36647a98589ff94ead (patch)
treee1e7b9007e6746b43c6f0d2ed93247df0df64c8b
parentb725c777aa4bd80c6ace3695733b560a320e1250 (diff)
downloadnextcloud-server-a7ffdcd3dd5612e594094f36647a98589ff94ead.tar.gz
nextcloud-server-a7ffdcd3dd5612e594094f36647a98589ff94ead.zip
remove dashboard check, as fallback did not consider it either
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/theming/lib/Jobs/MigrateBackgroundImages.php9
1 files changed, 0 insertions, 9 deletions
diff --git a/apps/theming/lib/Jobs/MigrateBackgroundImages.php b/apps/theming/lib/Jobs/MigrateBackgroundImages.php
index 802b15da6c7..2a6ca776ad5 100644
--- a/apps/theming/lib/Jobs/MigrateBackgroundImages.php
+++ b/apps/theming/lib/Jobs/MigrateBackgroundImages.php
@@ -27,7 +27,6 @@ declare(strict_types=1);
namespace OCA\Theming\Jobs;
use OCA\Theming\AppInfo\Application;
-use OCP\App\IAppManager;
use OCP\AppFramework\Utility\ITimeFactory;
use OCP\BackgroundJob\IJobList;
use OCP\BackgroundJob\QueuedJob;
@@ -45,7 +44,6 @@ class MigrateBackgroundImages extends QueuedJob {
protected const STAGE_EXECUTE = 'execute';
private IConfig $config;
- private IAppManager $appManager;
private IAppDataFactory $appDataFactory;
private IJobList $jobList;
private IDBConnection $dbc;
@@ -54,13 +52,11 @@ class MigrateBackgroundImages extends QueuedJob {
ITimeFactory $time,
IAppDataFactory $appDataFactory,
IConfig $config,
- IAppManager $appManager,
IJobList $jobList,
IDBConnection $dbc
) {
parent::__construct($time);
$this->config = $config;
- $this->appManager = $appManager;
$this->appDataFactory = $appDataFactory;
$this->jobList = $jobList;
$this->dbc = $dbc;
@@ -115,11 +111,6 @@ class MigrateBackgroundImages extends QueuedJob {
$userIds = $notSoFastMode ? array_slice($allUserIds, 0, 5000) : $allUserIds;
foreach ($userIds as $userId) {
try {
- // precondition
- if (!$this->appManager->isEnabledForUser('dashboard', $userId)) {
- continue;
- }
-
// migration
$file = $dashboardData->getFolder($userId)->getFile('background.jpg');
$targetDir = $this->getUserFolder($userId);