]> git.mxchange.org Git - friendica-addons.git/commitdiff
Replace calls to "notification" with the new function
authorMichael <heluecht@pirati.ca>
Tue, 19 Oct 2021 19:53:10 +0000 (19:53 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 19 Oct 2021 19:53:10 +0000 (19:53 +0000)
public_server/public_server.php
testdrive/testdrive.php

index 041199ddf4049464486b56caf22f93a2a5a9bd68..0ae3c15ccfec119111809eb2a4a8a6ebd522d696 100644 (file)
@@ -54,7 +54,7 @@ function public_server_cron($a, $b)
        $users = DBA::selectToArray('user', [], ["`account_expires_on` < UTC_TIMESTAMP() + INTERVAL ? DAY AND
                `account_expires_on` > ? AND `expire_notification_sent` <= ?", 5, DBA::NULL_DATETIME, DBA::NULL_DATETIME]);
        foreach ($users as $rr) {
-               notification([
+               DI::notify()->createFromArray([
                        'type' => Notification\Type::SYSTEM,
                        'uid' => $rr['uid'],
                        'system_type' => 'public_server_expire',
index a663c3f1e6d29cda0d17ed82545fe580d6658c7b..df7d3c5fc0edfa30a0a3b4362d3087a78e4747ee 100644 (file)
@@ -51,7 +51,7 @@ function testdrive_cron($a,$b) {
        $users = DBA::selectToArray('user', [], ["`account_expires_on` < UTC_TIMESTAMP() + INTERVAL ? DAY AND `expire_notification_sent` <= ?",
                5, DBA::NULL_DATETIME]);
        foreach($users as $rr) {
-               notification([
+               DI::notify()->createFromArray([
                        'type' => Notification\Type::SYSTEM,
                        'uid' => $rr['uid'],
                        'system_type' => 'testdrive_expire',