Removed unneeded data for notifications #1047

Merged
annando merged 1 commit from notification into develop 2020-11-28 23:01:59 +01:00
2 changed files with 2 additions and 8 deletions
Showing only changes of commit 6272ee3d09 - Show all commits

View file

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

View file

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