Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_retention.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-06-12 13:15:48 +0300
committerGitHub <noreply@github.com>2020-06-12 13:15:48 +0300
commitaed2fa8fd3634f5ad7ec3c44ff9028243c6a2338 (patch)
treee97c647b62f6e5673ff23cad3cf8aa179b26aebf
parent7c8b936a5b2c21b61652a83fee982467855a4bb7 (diff)
parent61e92202c79e02bababcea0c45b5af39d01a947a (diff)
Merge pull request #93 from nextcloud/backport/92/stable19v1.8.0
[stable19] Only notify before. Not every day but the day before.
-rw-r--r--lib/BackgroundJob/RetentionJob.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/BackgroundJob/RetentionJob.php b/lib/BackgroundJob/RetentionJob.php
index d604d52..9a883c4 100644
--- a/lib/BackgroundJob/RetentionJob.php
+++ b/lib/BackgroundJob/RetentionJob.php
@@ -229,7 +229,7 @@ class RetentionJob extends TimedJob {
$mtime->setTimestamp($node->getUploadTime());
}
- if ($mtime > $notifyBefore) {
+ if ($mtime < $notifyBefore) {
try {
$notification = $this->notificationManager->createNotification();
$notification->setApp(Application::APP_ID)