11<?php
22
33declare (strict_types=1 );
4+ /**
5+ * SPDX-FileCopyrightText: 2025 LibreCode coop and contributors
6+ * SPDX-License-Identifier: AGPL-3.0-or-later
7+ */
48
59namespace OCA \Libresign \Migration ;
610
711use OCA \Libresign \AppInfo \Application as AppInfoApplication ;
812use OCP \App \IAppManager ;
913use OCP \IConfig ;
10- use OCP \IL10N ;
1114use OCP \IUserManager ;
1215use OCP \Migration \IOutput ;
1316use OCP \Migration \IRepairStep ;
@@ -29,7 +32,7 @@ public function getName(): string {
2932 public function run (IOutput $ output ): void {
3033
3134 $ currentVersion = $ currentVersion = $ this ->appManager ->getAppVersion (AppInfoApplication::APP_ID );
32- $ lastNotifiedVersion = $ this ->config ->getAppValue (AppInfoApplication::APP_ID , 'last_notified_version ' , '' );
35+ $ lastNotifiedVersion = $ this ->config ->getAppValue (AppInfoApplication::APP_ID , 'last_notified_version ' , '' );
3336
3437 if ($ currentVersion === $ lastNotifiedVersion ) {
3538 return ;
@@ -44,7 +47,8 @@ public function run(IOutput $output): void {
4447 ->setDateTime (new \DateTime ())
4548 ->setObject ('upgrade ' , '1 ' )
4649 ->setSubject ('libresign_upgrade ' , [
47- 'message ' => 'LibreSign has been updated to version ' . $ currentVersion . '! Consider supporting the project: https://libresign.coop '
50+ 'version ' => $ currentVersion ,
51+ 'message ' => 'If LibreSign is useful to you or your organization, please consider supporting our cooperative by clicking the Donate button below. ' ,
4852 ]);
4953 $ this ->notificationManager ->notify ($ notification );
5054 }
0 commit comments