]> git.mxchange.org Git - friendica-addons.git/commitdiff
Removed unneeded data for notifications
authorMichael <heluecht@pirati.ca>
Sat, 28 Nov 2020 17:24:51 +0000 (17:24 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 28 Nov 2020 17:24:51 +0000 (17:24 +0000)
public_server/public_server.php
testdrive/testdrive.php

index 549020bd20aca88d622582840a5a4987aa3adf51..bb7ebec940feae73721ec630d4f2c585c6ff4e7b 100644 (file)
@@ -58,12 +58,9 @@ function public_server_cron($a, $b)
        if (DBA::isResult($r)) {
                foreach ($r as $rr) {
                        notification([
-                               'uid' => $rr['uid'],
                                'type' => Type::SYSTEM,
+                               'uid' => $rr['uid'],
                                'system_type' => 'public_server_expire',
-                               'language'     => $rr['language'],
-                               'to_name'      => $rr['username'],
-                               'to_email'     => $rr['email'],
                                'source_name'  => DI::l10n()->t('Administrator'),
                                'source_link'  => DI::baseUrl()->get(),
                                'source_photo' => DI::baseUrl()->get() . '/images/person-80.jpg',
index 1806ea2cc528ada368e123a9b8827b8965535632..f0d29e0e078bf7f2e1d0439534653a06a29aa5f3 100644 (file)
@@ -58,12 +58,9 @@ function testdrive_cron($a,$b) {
        if(count($r)) {
                foreach($r as $rr) {
                        notification([
-                               'uid' => $rr['uid'],
                                'type' => Type::SYSTEM,
+                               'uid' => $rr['uid'],
                                'system_type' => 'testdrive_expire',
-                               'language'     => $rr['language'],
-                               'to_name'      => $rr['username'],
-                               'to_email'     => $rr['email'],
                                'source_name'  => DI::l10n()->t('Administrator'),
                                'source_link'  => DI::baseUrl()->get(),
                                'source_photo' => DI::baseUrl()->get() . '/images/person-80.jpg',