Skip to content

Commit e996908

Browse files
committed
fix(dav): Skip removal of classified activity when not generated anymore
Was fixed in Nextcloud 16, so future versions should not generate this anymore. So the delete attempt can be skipped Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 1e833ce commit e996908

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

apps/dav/lib/Migration/RemoveClassifiedEventActivity.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
use OCP\IDBConnection;
1313
use OCP\Migration\IOutput;
1414
use OCP\Migration\IRepairStep;
15+
use OCP\ServerVersion;
1516

1617
class RemoveClassifiedEventActivity implements IRepairStep {
1718

1819
public function __construct(
1920
private IDBConnection $connection,
21+
private ServerVersion $serverVersion,
2022
) {
2123
}
2224

@@ -37,6 +39,10 @@ public function run(IOutput $output) {
3739
return;
3840
}
3941

42+
if ($this->serverVersion->getMajorVersion() > 17) {
43+
return;
44+
}
45+
4046
$deletedEvents = $this->removePrivateEventActivity();
4147
$deletedEvents += $this->removeConfidentialUncensoredEventActivity();
4248

0 commit comments

Comments
 (0)