From: Michael Date: Sat, 28 Nov 2020 17:24:51 +0000 (+0000) Subject: Removed unneeded data for notifications X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6272ee3d09dc08c67db574ad27995ce83de3fb73;p=friendica-addons.git Removed unneeded data for notifications --- diff --git a/public_server/public_server.php b/public_server/public_server.php index 549020bd..bb7ebec9 100644 --- a/public_server/public_server.php +++ b/public_server/public_server.php @@ -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', diff --git a/testdrive/testdrive.php b/testdrive/testdrive.php index 1806ea2c..f0d29e0e 100644 --- a/testdrive/testdrive.php +++ b/testdrive/testdrive.php @@ -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',