[public_server] Add expected "event" key in public_server_cron()

- Address https://github.com/friendica/friendica/issues/12488#issuecomment-1372634282
pull/1348/head
Hypolite Petovan 2023-01-09 09:22:30 -05:00
parent 2cc326ccf5
commit 5a9b63ff3b
1 changed files with 1 additions and 0 deletions

View File

@ -55,6 +55,7 @@ function public_server_cron(App $a, $b)
foreach ($users as $rr) { foreach ($users as $rr) {
DI::notify()->createFromArray([ DI::notify()->createFromArray([
'type' => Notification\Type::SYSTEM, 'type' => Notification\Type::SYSTEM,
'event' => 'SYSTEM_PUBLIC_SERVER_EXPIRATION',
'uid' => $rr['uid'], 'uid' => $rr['uid'],
'system_type' => 'public_server_expire', 'system_type' => 'public_server_expire',
'source_name' => DI::l10n()->t('Administrator'), 'source_name' => DI::l10n()->t('Administrator'),