mirror of
https://github.com/nextcloud/server.git
synced 2026-10-29 16:15:46 +01:00
apps/viewer becomes a minimal, always enabled app again, the server side of the viewer. It keeps the user's viewer settings the way the Files app keeps its own: a config lexicon declaring them, a UserConfig service holding what the lexicon cannot say, an OCS endpoint to change one, and the settings handed to the viewer as initial state. They are the slideshow delay, and the volume of videos and audio and whether they start muted. Core keeps loading the viewer itself. It is no longer an abandoned app to clean up after, and continues the old app's versions at 9.0.0-dev.0, after 8.0.0 in 35. Assisted-by: ClaudeCode:claude-opus-5-5 Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
38 lines
853 B
PHP
38 lines
853 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
/**
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OC\Repair;
|
|
|
|
use OCP\IConfig;
|
|
use OCP\Migration\IOutput;
|
|
use OCP\Migration\IRepairStep;
|
|
|
|
class CleanUpAbandonedApps implements IRepairStep {
|
|
protected const ABANDONED_APPS = ['accessibility', 'files_videoplayer'];
|
|
|
|
public function __construct(
|
|
private readonly IConfig $config,
|
|
) {
|
|
}
|
|
|
|
#[\Override]
|
|
public function getName(): string {
|
|
return 'Clean up abandoned apps';
|
|
}
|
|
|
|
#[\Override]
|
|
public function run(IOutput $output): void {
|
|
foreach (self::ABANDONED_APPS as $app) {
|
|
// only remove global app values
|
|
// user prefs of accessibility are dealt with in Theming migration
|
|
// videoplayer did not have user prefs
|
|
$this->config->deleteAppValues($app);
|
|
}
|
|
}
|
|
}
|