]> git.mxchange.org Git - friendica-addons.git/commitdiff
[public_server] Add expected "event" key in public_server_cron()
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 9 Jan 2023 14:22:30 +0000 (09:22 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 9 Jan 2023 14:22:30 +0000 (09:22 -0500)
- Address https://github.com/friendica/friendica/issues/12488#issuecomment-1372634282

public_server/public_server.php

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