mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Replace "notification" call with new function, removing enotify.php
This commit is contained in:
parent
4422be9cea
commit
2f1f6f6fb2
7 changed files with 7 additions and 46 deletions
|
@ -2719,7 +2719,7 @@ class Contact
|
|||
if (($user['notify-flags'] & Notification\Type::INTRO) &&
|
||||
in_array($user['page-flags'], [User::PAGE_FLAGS_NORMAL])) {
|
||||
|
||||
notification([
|
||||
DI::notify()->createFromArray([
|
||||
'type' => Notification\Type::INTRO,
|
||||
'otype' => Notification\ObjectType::INTRO,
|
||||
'verb' => ($sharing ? Activity::FRIEND : Activity::FOLLOW),
|
||||
|
|
|
@ -104,7 +104,7 @@ class Mail
|
|||
'link' => DI::baseUrl() . '/message/' . $msg['id'],
|
||||
];
|
||||
|
||||
notification($notif_params);
|
||||
DI::notify()->createFromArray($notif_params);
|
||||
|
||||
Logger::info('Mail is processed, notification was sent.', ['id' => $msg['id'], 'uri' => $msg['uri']]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue