Replace "notification" call with new function, removing enotify.php
This commit is contained in:
@@ -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),
|
||||
|
||||
+1
-1
@@ -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']]);
|
||||
}
|
||||
|
||||
@@ -365,7 +365,7 @@ class Register extends BaseModule
|
||||
|
||||
// send notification to admins
|
||||
while ($admin = DBA::fetch($admins_stmt)) {
|
||||
\notification([
|
||||
DI::notify()->createFromArray([
|
||||
'type' => Model\Notification\Type::SYSTEM,
|
||||
'event' => 'SYSTEM_REGISTER_REQUEST',
|
||||
'uid' => $admin['uid'],
|
||||
|
||||
@@ -1371,7 +1371,7 @@ class DFRN
|
||||
'note' => $suggest['body'], 'hash' => $hash, 'datetime' => DateTimeFormat::utcNow(), 'blocked' => false];
|
||||
DBA::insert('intro', $fields);
|
||||
|
||||
notification([
|
||||
DI::notify()->createFromArray([
|
||||
'type' => Notification\Type::SUGGEST,
|
||||
'otype' => Notification\ObjectType::INTRO,
|
||||
'verb' => Activity::REQ_FRIEND,
|
||||
@@ -1576,7 +1576,7 @@ class DFRN
|
||||
$item['parent'] = $parent['id'];
|
||||
|
||||
// send a notification
|
||||
notification(
|
||||
DI::notify()->createFromArray(
|
||||
[
|
||||
"type" => Notification\Type::POKE,
|
||||
"otype" => Notification\ObjectType::PERSON,
|
||||
|
||||
Reference in New Issue
Block a user